in reply to string to number via data dumper
Fortunately, Perl will convert your string back to a number whenever you treat it as one.
like say $stuff + 0 ; # print $stuff + 0 , "\n" ; # on older perl versions.
I also believe Data::Dumper did not convert your number to a string but added quotes for clarity.
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: string to number via data dumper
by Anonymous Monk on Sep 28, 2013 at 12:14 UTC | |
by semipro (Novice) on Sep 28, 2013 at 12:46 UTC | |
by kcott (Archbishop) on Sep 28, 2013 at 13:37 UTC | |
by Laurent_R (Canon) on Sep 28, 2013 at 14:54 UTC | |
by semipro (Novice) on Sep 29, 2013 at 09:42 UTC |
In Section
Seekers of Perl Wisdom