Just be careful that the ARGV filehandle is not currently open on another file, otherwise it won't quite do what you expected.
Update: localizing the entire *ARGV glob works, but doesn't work in less than recent Perls - it breaks on less than 5.8, IIRC 5.6 - see (tye)Re: Cheap idioms.
Makeshifts last the longest.
In reply to Re^2: include statement in perl? (idiom with caveats)
by Aristotle
in thread include statement in perl?
by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |