Parse command-line arguments: Difference between revisions

Content added Content deleted
(Add the Perl version.)
(cut off first element to really get name *after* -f argument (alternatively: increase index))
Line 143: Line 143:
:Or, find the name of an optional file:
:Or, find the name of an optional file:


::<lang j> (ARGV i.<'-f') {:: ARGV,a:</lang>
::<lang j> (ARGV i.<'-f') {:: }.ARGV,a:</lang>


::This is the name of the first file named after the first -f argument, or empty if there was no such file.
::This is the name of the first file named after the first -f argument, or empty if there was no such file.