in reply to Code behaves differently in script and on command line
The error message wasn't all that helpful about it, that's all :
Because you hadn't changed the parsing rules (i.e. declared the prototype) yet,
rmap {print} $system_data;
was taken to meant
print()->rmap($system_data);
Perl is rightfully complaining that print isn't returning an object.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Code behaves differently in script and on command line
by monsieur (Initiate) on Jun 26, 2009 at 11:01 UTC | |
by ikegami (Patriarch) on Jun 26, 2009 at 14:50 UTC |