develooper Front page | perl.perl5.porters | Postings from January 2011

Re: Using smart matching to find whether an array contains a string

Thread Previous | Thread Next
From:
Ed Avis
Date:
January 27, 2011 03:10
Subject:
Re: Using smart matching to find whether an array contains a string
Message ID:
loom.20110127T120718-495@post.gmane.org
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".
(Number vs string formatting wasn't the reason I switched - it appears that
Data::Dumper may be more faithful to Perl's internal representation.)

-- 
Ed Avis <eda@waniasset.com>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About