in reply to Re: Order of 'use' statement in Data::Dumper
in thread Order of 'use' statement in Data::Dumper
is the same asuse Data::Dumper;
BEGIN { require Data::Dumper; Data::Dumper::->import(); }
Like psini already said, the problem is that Perl already had to decide whether Dumper is a function call or not before use Dumper; was encountered.
You can only omit parens on a function call to a function that's already been declared (but not necessarily defined) or if you annotate the function call with &.
Update: Added list showing execution flow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Order of 'use' statement in Data::Dumper
by ~~David~~ (Hermit) on Jul 16, 2009 at 18:55 UTC |