Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Number as string

by JavaFan (Canon)
on Mar 13, 2009 at 14:25 UTC ( [id://750435]=note: print w/replies, xml ) Need Help??


in reply to Number as string

Except in a few isolated cases, Perl doesn't dispatch operators on their argument types. In general, it's the operator that determines what happens, and the operands adjust themselves. Other languages have operators adjust themselves to their operands, but not Perl. (There will be type based dispatch in Perl6. But that an "other language"). In Perl, if you want to concatenate values, you have to use the concatenation operator: ..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found