in reply to Re^2: How would you do it? Re ARGV, fundamentally!
in thread How would you do it? Re ARGV, fundamentally!
has a huge pile o' magic going on in it. While I might use it in a program, it deserves a comment line alongside it, explaining that the "shift" on the right side is using the old @ARGV, before the new local @ARGV is created.local @ARGV=shift;
No, in production code, I'd probably write it like I showed upthread. Yours is full of magic.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|