jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
(i) $line = <STDIN> (ii) $line = readline(STDIN) (iii) $line = readline(*STDIN) (iv) open my $fh, "<&=STDIN" or die; $line = readline($fh);
monks I need your valuable suggestions on the performance above statements. functionality wise all are same. But I need to know which one is very efficient. I am expecting your valuable inputs.
"Keep pouring your ideas"
2005-10-29 Retitled by davido, as per Monastery guidelines
Original title: 'which one is Faster'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Fastest way to get input from a filehandle
by sauoq (Abbot) on Oct 29, 2005 at 13:51 UTC | |
Re: Fastest way to get input from a filehandle
by japhy (Canon) on Oct 29, 2005 at 15:15 UTC | |
by sauoq (Abbot) on Oct 29, 2005 at 16:34 UTC | |
Re: Fastest way to get input from a filehandle
by bageler (Hermit) on Oct 29, 2005 at 15:59 UTC | |
Re: Fastest way to get input from a filehandle
by pg (Canon) on Oct 29, 2005 at 16:28 UTC | |
by graff (Chancellor) on Oct 29, 2005 at 18:34 UTC |
Back to
Seekers of Perl Wisdom