![]() |
|
No such thing as a small change | |
PerlMonks |
Re: Will my code work in Perl 6?by Juerd (Abbot) |
on Feb 08, 2002 at 14:33 UTC ( #144107=note: print w/replies, xml ) | Need Help?? |
Perl 5 In Perl 5, the parens are not optional. And please use a monospaced font for code :).
dot/underscore Only if there's a \w character next to it. $foo{bar}_$foo{bar} will be possible, but $foo_$bar will not (or at least not DWIM).
'for' is now a shortcut for 'foreach'. I don't know if shortcut is the right word, but currently, for and foreach are exactly the same. That is, foreach (EXPR;EXPR;EXPR) and for (LIST) work.
In Section
Meditations
|
|