in reply to Re: Perl data notation
in thread Perl data notation
That makes it possible to eval them back to existence.This holds for basic data structures, but fails for three cases (I know of):
which outputsperl -MData::Dumper -e 'my $ref = []; print Dumper eval Dumper [$ref, + $ref];
and (thankfully) fails under strict.$VAR1 = [ [], undef ];
</pedantic>
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl data notation
by Anonymous Monk on Jul 15, 2014 at 16:06 UTC | |
|
Re^3: Perl data notation
by ikegami (Patriarch) on Jul 25, 2014 at 04:02 UTC | |
|
Re^3: Perl data notation
by davido (Cardinal) on Jul 15, 2014 at 22:25 UTC | |
by kennethk (Abbot) on Jul 16, 2014 at 00:18 UTC | |
|
Re^3: Perl data notation
by Anonymous Monk on Jul 19, 2014 at 09:09 UTC |