Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Bioinformatics project feedback request.

by runrig (Abbot)
on Jul 02, 2013 at 16:02 UTC ( #1042055=note: print w/ replies, xml ) Need Help??


in reply to Re: Bioinformatics project feedback request.
in thread Bioinformatics project feedback request.

The $|++ is a well known idiom; however, it works on the assumption that $| >= 0 is TRUE

No, it doesn't. It works on the little known fact that $| can only be 0 or 1. Try: $| = -1; print "$|\n";


Comment on Re^2: Bioinformatics project feedback request.
Download Code
Replies are listed 'Best First'.
Re^3: Bioinformatics project feedback request.
by kcott (Abbot) on Jul 02, 2013 at 16:36 UTC

    Interesting. I certainly didn't know that and it's not documented in perlvar.

    $ perl -E '$| = 2; say $|; $| = -1; say $|; $| = 0; say $|; $| = undef +; say $|' 1 1 0 0

    Thanks for the information.

    -- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2015-07-29 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls