Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2018-06-20 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?