On 2011-01-26 15:22, Ed Avis wrote:
> % perl -E '@a = ("1"); say "1 x" ~~ @a'
>
> % perl -E '@a = (1); say "1 x" ~~ @a'
> 1
>
> So you have to be aware of the difference between 1 and '1'.
> This is the only place in everyday Perl programming where the difference is
> noticeable.
Who doesn't use Data::Dumper daily?
perl -MData::Dumper -wle 'print Dumper [ 0, "0", 0.0, 0_0, 0_0.0, ]'
$VAR1 = [
0,
'0',
'0',
0,
'00'
];
--
Ruud
Thread Previous
|
Thread Next