Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: command line perl reading from STDIN

by BrowserUk (Pope)
on Jan 31, 2013 at 18:24 UTC ( #1016373=note: print w/ replies, xml ) Need Help??


in reply to Re^4: command line perl reading from STDIN
in thread command line perl reading from STDIN

What do you get if you let perl do the open rather than have the shell redirect>:

time perl -ne '$s=<>;<>;<>; chomp $s; print "$s\n";' A_1_1.fq | wc -l

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^5: command line perl reading from STDIN
Download Code
Re^6: command line perl reading from STDIN
by perlhappy (Novice) on Jan 31, 2013 at 18:58 UTC
    The exact same output using both commands and the exact same number of lines. The results are exactly the same but the time performance is really different. Weird
      but the time performance is really different.

      Could I trouble you to post that timing data?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-10-21 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (106 votes), past polls