We don't bite newbies here... much | |
PerlMonks |
Re: Number as stringby JavaFan (Canon) |
on Mar 13, 2009 at 14:25 UTC ( [id://750435]=note: print w/replies, xml ) | Need Help?? |
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: ..
In Section
Seekers of Perl Wisdom
|
|