in reply to Re^2: I would have expected a syntax error here
in thread Solved! I would have expected a syntax error here
indirect already exists on CPAN:
>perl -M-indirect -wle "got to here today! (20180520)" Indirect call of method "here" on object "today" at -e line 1. Indirect call of method "got" on object "to" at -e line 1. Can't locate object method "here" via package "today" (perhaps you for +got to load "today"?) at -e line 1.
>perl -wle "got to here today! (20180520)" Can't locate object method "here" via package "today" (perhaps you for +got to load "today"?) at -e line 1.
You can put it either into PERL5OPT or just at the top of your code:
no indirect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: I would have expected a syntax error here
by roboticus (Chancellor) on Oct 19, 2018 at 17:45 UTC | |
|
Re^4: I would have expected a syntax error here
by LanX (Saint) on Oct 19, 2018 at 18:30 UTC | |
by Corion (Patriarch) on Oct 19, 2018 at 18:37 UTC |