[dancer-users] Only even items

David Precious davidp at preshweb.co.uk
Mon Apr 8 21:03:48 BST 2013


On Mon, 8 Apr 2013 20:50:11 +0100
David Precious <davidp at preshweb.co.uk> wrote:

> So, the following two are equivalent:
> 
> my %hash = ( foo => 'Bar' );
> my %hash = ( foo, 'Bar' );

Actually, they're not, the second is a syntax error as I didn't add
quotes around foo.

I of course meant:

my %hash = ( foo => 'Bar' );
my %hash = ( 'foo', 'Bar' );

:)

-- 
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github




More information about the dancer-users mailing list