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.
In reply to Re: while(<>) { ... } considered harmful
by Juerd
in thread while(<>) { ... } considered harmful
by IlyaM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |