in reply to Re: Re: Using "my" suppresses "Name used only once" warning?
in thread Using "my" suppresses "Name used only once" warning?
This seems reasonable to me. Just assume that any time you do math with strings, or string operations with numbers that perl silently handles the type conversions required. So the below
can be implictily read as>perl -e "print 1 . '1' + '.01'" 11.01
but is much less confusing.>perl -e "print str2num(num2str(1) . '1') + str2num('.01')"
Dont knock it, eventually youll wonder why it isnt this easy in all of the other languages...
;-)
--- demerphq
my friends call me, usually because I'm late....
|
|---|