"Charles K. Clarkson" wrote: > Harry Putnam <[EMAIL PROTECTED]> wrote: > : > : "R. Joseph Newton" <[EMAIL PROTECTED]> writes: > : > : > > Something like: > : > > [...] snipped getopts and other unrelated stuff > : > > while(<FILE>){ > : > > chomp; > : > > my $line = $_; > : > > : > Why here. Since you are doing this with each line, > : > you could write in the loop control: > : > while (my $line = <FILE>) { > : > : Not sure I understand the advantage. In my > : formulation, `$line' is minus the trailing newline... > : which I've found to be nearly always a plus. > > I think Joseph was implying the 'chomp'. This is > still shorter and IMO clearer than using $_.
Not exactly. Just being sloppy about it. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>