ARGV in Perl represents the command-line arguments.
文章推薦指數: 80 %
Related examples in the same category ; 16. ARGV and the Null Filehandle ; 17. Aliases and Values ; 18. Alternative names for Perl system variables. ; 19. Assign ...
HomePerlArrayCGIClassDataTypeDatabaseFileGUIHashLanguageBasicsNetworkRegularExpressionReportStatementStringSubroutineSystemFunctionsWin32XMLARGVinPerlrepresentsthecommand-linearguments.:SpecialVariables « LanguageBasics « PerlPerlLanguageBasicsSpecialVariablesARGVinPerlrepresentsthecommand-linearguments.
#
延伸文章資訊
- 1Getopt::Long - Extended processing of command line options
To use Getopt::Long from a Perl program, you must include the following line in ... If an argumen...
- 2Processing command line arguments - @ARGV in Perl
In Perl @ARGV contains the raw command line arguments as passed by the user running ... If there ...
- 3Perl the swiss knife · Command Line Text Processing
passing argument to -l to set output record separator. $ seq 8 | perl -ne 'print if /[24]/' 2 4 $...
- 4Perl Display And Pass Command Line Arguments With @argv
Use the $ARGV[n] to display argument. We use the $#ARGV to get total number of passed argument to...
- 5PERL -- Options
If there are no digits, the null character is the separator. ... If -e is given, perl will not lo...