in reply to while(<>) { ... } considered harmful
map { require Net::DNS } 1;
Is that a map in void context? Nasty and evil. (I don't recall require ever returning anything useful.)
Personally I prefer always using while(my $line = <>) construct.
I don't always. Setting $_ lets one use regexes and simple commands easier. I do use a lexical for more complicated blocks, but I often find myself just slurping the file into an array first.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re(2): while(<>) { ... } considered harmful
by FoxtrotUniform (Prior) on Sep 08, 2002 at 01:24 UTC | |
by IlyaM (Parson) on Sep 08, 2002 at 19:28 UTC | |
Re: Re: while(<>) { ... } considered harmful
by schwern (Scribe) on Aug 07, 2003 at 21:40 UTC | |
by tye (Sage) on Aug 18, 2003 at 21:44 UTC | |
by Juerd (Abbot) on Aug 07, 2003 at 21:48 UTC |
In Section
Meditations