Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Never-to-use Perl features ?

by dada (Chaplain)
on May 14, 2003 at 08:32 UTC ( #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
Node Status?
node history
Node Type: note [id://257996]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-02-24 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?