~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error: print() on unopened filehandle Dumper Since Data::Dumper is loaded at compile time, why does the use statement matter where it is placed in the file?use strict; use warnings; my %test_hash = ( a => { b=> 'c' } ); print Dumper %test_hash; use Data::Dumper;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Order of 'use' statement in Data::Dumper
by psini (Deacon) on Jul 16, 2009 at 15:51 UTC | |
|
Re: Order of 'use' statement in Data::Dumper
by jrsimmon (Hermit) on Jul 16, 2009 at 15:51 UTC | |
by ikegami (Patriarch) on Jul 16, 2009 at 16:55 UTC | |
by ~~David~~ (Hermit) on Jul 16, 2009 at 18:55 UTC | |
by psini (Deacon) on Jul 16, 2009 at 16:02 UTC | |
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 |