in reply to Parse error with subroutines and <
With predeclaration or importing, Perl knows that your bareword is a function call. Without a prototype or parentheses around the argument list, Perl doesn't know its arity. There's no simple way to disambiguate between a <> glob call and your expression.
I recommend using a prototype or parentheses.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse error with subroutines and <
by TedYoung (Deacon) on Dec 14, 2007 at 20:02 UTC | |
by Fletch (Bishop) on Dec 14, 2007 at 20:17 UTC | |
by ikegami (Patriarch) on Dec 14, 2007 at 21:35 UTC |