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."
In reply to Re^2: Order of 'use' statement in Data::Dumper
by psini
in thread Order of 'use' statement in Data::Dumper
by ~~David~~
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |