Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: command line perl reading from STDIN

by BrowserUk (Patriarch)
on Jan 31, 2013 at 18:24 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1016373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-19 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found