on 5.16.2, why does
perl -ce 'sub foo (&) {} foo {;} || 7'
work just fine, while
perl -ce 'sub foo (&) {} foo {;} // 7'
gives compilation errors? this doesn't seem like a shell-escaping issue; if I copy it into a separate file, the same thing holds.
Thanks,Ed
Thanks everyone for pointing out that the interpreter's recognizing the ambiguity with the "empty pattern"!In reply to strangeness with prototypes and 'logical defined or'? by ed_hoch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |