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

Re: Never-to-use Perl features ?

by dada (Chaplain)
on May 14, 2003 at 08:32 UTC ( [id://257996]=note: print w/replies, xml ) Need Help??


in reply to Never-to-use Perl features?

  • the ... operator
  • rand*10 parsed as rand(*10) instead of rand()*10 (not much of a Perl feature, but it still bites me after more than 6 years of perl hacking :-)
cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris

Replies are listed 'Best First'.
Re^2: Never-to-use Perl features? (non-paren disambiguation)
by Aristotle (Chancellor) on May 19, 2003 at 12:22 UTC
    Tip: disambiguate those cases without adding parens by reversing the order of operands: 10*rand

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found