in reply to Re: Order of 'use' statement in Data::Dumper
in thread Order of 'use' statement in Data::Dumper
I don't think it is exactly so. When execution reach the print line, Data::Dumper is available. If you try the code from my previous example (I tested it, at last) you'll see that it works.
The problem is that at compile time, the Dumper sub is not imported till use Data::Dumper is reached; so "print Dumper something", without parenthesis, is interpreted as if Dumper were a filehandle to print to.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Order of 'use' statement in Data::Dumper
by jrsimmon (Hermit) on Jul 16, 2009 at 16:45 UTC | |
by psini (Deacon) on Jul 16, 2009 at 16:52 UTC | |
by jrsimmon (Hermit) on Jul 16, 2009 at 16:59 UTC |