Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Use of the => operator

by roju (Friar)
on Aug 10, 2004 at 15:16 UTC ( #381618=note: print w/replies, xml ) Need Help??

in reply to Re: Use of the => operator
in thread Use of the => operator

From perlop: The => digraph is mostly just a synonym for the comma operator. It's useful for documenting arguments that come in pairs. As of release 5.001, it also forces any word to the left of it to be interpreted as a string.

I'd call 01 a word, especially since 01 =~ /^\w+$/ will match. But yup, since perl defines Perl, 01 isn't a word ;)

Replies are listed 'Best First'.
Re^3: Use of the => operator
by Joost (Canon) on Aug 10, 2004 at 15:28 UTC
Re^3: Use of the => operator
by gmpassos (Priest) on Aug 10, 2004 at 15:23 UTC
    Maybe perlop need some updates!

    Graciliano M. P.
    "Creativity is the expression of the liberty".

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-11-30 06:35 GMT
Find Nodes?
    Voting Booth?

    No recent polls found