in reply to Re: string to number via data dumper
in thread string to number via data dumper
I also believe Data::Dumper did not convert your number to a string but added quotes for clarity.
Yep, it simply quoted the strings -- a string is not a number until its treated like a number :)
$ perl -MData::Dump -e " dd '+11', 0+ '+11' " ("+11", 11)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: string to number via data dumper
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 |