Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: $| pre and post increment and deincrement behavior

by robin (Chaplain)
on Dec 01, 2005 at 14:05 UTC ( #513275=note: print w/replies, xml ) Need Help??

in reply to Re: $| pre and post increment and deincrement behavior
in thread $| pre and post increment and deincrement behavior

Someone seems intent on repeating this particular piece of misinformation, so perhaps it's worth repeating (just this once) that it's incorrect.

I do agree that $|++ is unnecessarily clever, since it might confuse an ignorant maintenenance programmer, and that $| = 1 is clearer. But it's simply wrong to say that it could bite you if $| doesn't happen to have the value you assume. It couldn't, for reasons that will be obvious to anyone who has understood this thread.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513275]
[1nickt]: Config works properly, thank you. I has first followed an example from the doc using eval. THis is much nicer.
[jedikaiti]: 'ello
[1nickt]: Bah, still does not work under Perlbrew

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-10-18 15:49 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (249 votes). Check out past polls.