(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.
2005-10-29 Retitled by davido, as per Monastery guidelines
Original title: 'which one is Faster'
In reply to Fastest way to get input from a filehandle by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |