tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
Re: Beginners guide to File::Find
Basically @ARGV > 0 and getopts('a:', \my %opt) or die << "USAGE";
works, but "my" instead of "\my" doesn't work. And fwiw, neigher does {my %opt}.
What's up with that? What is that backslash doing? And is there some less arcane way to parse args, with Getopts::Std or one of the other arg handling modules?
Thanks!
Edited by planetscape - linkified link
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why do I need a slash before my -- \my -- in getopts
by Fletch (Bishop) on Apr 12, 2006 at 13:31 UTC | |
|
Re: Why do I need a slash before my -- \my -- in getopts
by ikegami (Patriarch) on Apr 12, 2006 at 16:23 UTC |