in reply to How would you do it? Re ARGV, fundamentally!

I never use the while (<>) {} construct. Instead I always use a explicit open, mostly along with a Getopt module. Then I can throw errors with my own error messages and parse additional flags conveniently.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: How would you do it? Re ARGV, fundamentally!
by blazar (Canon) on Jul 19, 2005 at 10:44 UTC
    It all depends on your target application. For some classes of applications while (<>) {} is great. Occasionally I have even filled @ARGV manually to exploit it.