in reply to Command Line Switches
$ ls -l * ls: invalid option -- - Try `ls --help' for more information. $ ls -l -- * -rw------- 1 eric users 0 2009-11-18 14:08 -a-
Another trick is to provide an equivalent path that doesn't start with "-":
$ ls -l ./-a- -rw------- 1 eric users 0 2009-11-18 14:08 ./-a-
And finally,
$ rm -- -a- $
Since it's not a command line switch, it's completely ignored by Perl.
|
|---|