Explain how '--' works in command-line invocation.
authorJames E Keenan <jkeenan@cpan.org>
Sat, 14 Dec 2013 00:08:09 +0000 (01:08 +0100)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 14 Dec 2013 00:08:09 +0000 (01:08 +0100)
Excerpted from 'man bash': GNU Bash-2.05b, 2002 July 15.

For: RT #120732, as requested by bulk88.

pod/perlrun.pod

index dbaa12c..1feecb0 100644 (file)
@@ -220,6 +220,9 @@ clustered with the following switch, if any.
 
     #!/usr/bin/perl -spi.orig  # same as -s -p -i.orig
 
+A C<--> signals the end of options and disables further option processing. Any
+arguments after the C<--> are treated as filenames and arguments.
+
 Switches include:
 
 =over 5