in reply to Re: Calling a sub without enclosing its argument inside brackets
in thread Calling a sub without enclosing its argument inside brackets
> no feature qw( indirect );
For completeness, he still needs to predeclare the sub palt .
Either by putting sub palt { ... } earlier or use subs qw(palt); to tell the compiler that it's not a bareword.
Otherwise he'll get
Bareword found where operator expected (Do you need to predeclare "palt"?
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Calling a sub without enclosing its argument inside brackets
by ikegami (Patriarch) on Mar 18, 2024 at 13:37 UTC |