in reply to BUG when parsing defined-or ?
This is really just a guess, but maybe the logic that disambiguates between defined-or and an empty m// regex (which I remember reading somewhere is fuzzy) is choosing to interpret it as a regex.
$ perl -MO=Deparse -e 'sub foo (&) {}; foo {"foo"} //' Too many arguments for main::foo at -e line 1, at EOF -e had compilation errors. sub foo (&) { } &foo(sub { 'foo'; } , //);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: BUG when parsing defined-or? (calls of prototyped subs)
by LanX (Saint) on Jan 25, 2016 at 01:21 UTC |