in reply to Re[5]: help with search and match
in thread help with search and match

while(defined(local $_=<$fh>)){chomp;

Why do you write it that way? That is, why localize $_, and why test for defined when the line read can only be false at EOF?

Replies are listed 'Best First'.
Re[7]: help with search and match
by fruiture (Curate) on Aug 27, 2002 at 15:36 UTC

    That's just while(<HANDLE>) with localized $_, I prefer it, although it's not neccessary in that script.

    --
    http://fruiture.de