in reply to Re: Perl 5.12.2 Data Structures
in thread Perl 5.12.2 Data Structures

FWIW,  [ a, b, c ] could also compile to an expression if subroutines  a() b() c() had been defined, but somehow I don't think that's what hennesse was going for.

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "sub a { return 'foo'; } sub b { } sub c { return 'bar'; } ;; my $array_ref = [ a, b, c ]; dd $array_ref; " ["foo", "bar"]
(Note that  b() intentionally returns an empty list.)


Give a man a fish:  <%-{-{-{-<