Plankton has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong?$ cat HoH.pl #!/usr/bin/perl -w use strict; use Data::Dumper; require 'hash'; print Dumper(%HoH); $ cat hash my $HoH = { 'HASH_1' => { item_a => "abc", item_b => "123", item_c => "blue", }, 'HASH_2' => { item_a => "xyz", item_b => "789", item_c => "white", }, 'HASH_3' => { item_a => "ijk", item_b => "3.14", item_c => "yellow", } }; $ ./HoH.pl Global symbol "%HoH" requires explicit package name at ./HoH.pl line 5 +. Execution of ./HoH.pl aborted due to compilation errors.
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using require as c like #include?
by Coruscate (Sexton) on Jan 19, 2004 at 23:51 UTC | |
by Plankton (Vicar) on Jan 20, 2004 at 19:41 UTC | |
|
Re: using require as c like #include?
by davido (Cardinal) on Jan 20, 2004 at 07:12 UTC | |
|
Re: using require as c like #include?
by Roger (Parson) on Jan 19, 2004 at 23:40 UTC | |
|
Re: using require as c like #include?
by jweed (Chaplain) on Jan 19, 2004 at 23:31 UTC | |
|
Re: using require as c like #include?
by Zed_Lopez (Chaplain) on Jan 19, 2004 at 23:57 UTC | |
|
Re: using require as c like #include?
by mce (Curate) on Jan 20, 2004 at 10:47 UTC | |
|
Re: using require as c like #include?
by flounder99 (Friar) on Jan 20, 2004 at 13:16 UTC |