On Thu, Jan 27, 2011 at 11:09:24AM +0000, Ed Avis wrote: > Dr.Ruud <rvtol+usenet <at> isolution.nl> writes: > > >Who doesn't use Data::Dumper daily? > > > >perl -MData::Dumper -wle 'print Dumper [ 0, "0", 0.0, 0_0, 0_0.0, ]' > > I have switched to Data::Dump, which is nicer in some ways. In this particular > case it shows the first four numbers as just 0 and the last, oddly, as "00". It's not odd. 0_0.0 is equal to 0_0 . 0 or 0 . 0 aka "00" Use of _ forces the number to be parsed as an integer, not a float. AbigailThread Previous | Thread Next