develooper Front page | perl.perl5.porters | Postings from July 2010

given/when/default syntax design hides typos

Thread Next
From:
Chip Salzenberg
Date:
July 29, 2010 17:09
Subject:
given/when/default syntax design hides typos
Message ID:
4C521813.4010604@pobox.com
$ perl -c -e 'use 5.10.0; given(1) { defalut { print "boo" } }'
< no error>

Probably not much can be done about really fixing this, but a carefully 
crafted warning might be possible.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About