On Sun, Apr 13, 2008 at 1:35 PM, Richard Lee <[EMAIL PROTECTED]> wrote: > why does below fail? > > ----- where it's failing ----- > open my $source, "<", "/tmp/server.log" > or die "Could NOT open /var/log/server.log: $!"; > my $file = new IO::Handle; > while ($_ = $file->getline($source) ) { snip
This should be while (defined $_ = $source->getline) { } but that isn't any faster than while (<$source>) { } -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/