in reply to Re: Optimizing existing Perl code (in practise)
in thread Optimizing existing Perl code (in practise)
my $text = `cat $file`;
If you're gonna do that, you might as well do
my $text = join '', <FileHandle->new($file)> and still do it in perl. Frankly I don't know which is faster but I would choose to do it the second way because I think it would be faster.
If you're gonna do that, you might as well do
my $text = join '', <FileHandle->new($file)> and still do it in perl. Frankly I don't know which is faster but I would choose to do it the second way because I think it would be faster.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Optimizing existing Perl code (in practise)
by Abigail-II (Bishop) on Aug 19, 2002 at 16:22 UTC | |
by IlyaM (Parson) on Aug 19, 2002 at 21:05 UTC |
In Section
Seekers of Perl Wisdom