Mihai Bazon wrote:
> Actually, not. "=>" implies a list context, nor scalar, which means
> that the following prints 'c':
>
> #! /usr/bin/perl -w
> my @a = ('a', 'b', 'c');
> my $b = { '1' => @a };
> print $b->{b};
>
> This is high on my "most hated Perl features, ever" list, although it's
> quite handy after a few years experience. ;-)
Oh well that's embarassing. ;) I guess you can see often I use the key => list
syntax. :P Thanks for the correction and going easy on the public flogging!
-- Josh
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates