danidin has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
Here is my code, pretty simple:
my %temp_hash; my ($temp_name, $temp_id) = split ("~", $sql_result); $temp_hash{$temp_name} = $temp_id;
For this code I get this error message :
Global symbol "$temp_hash" requires explicit package name at /exlibris +/sfx_ver/sfx_version_3/dz_3/sfxadmin/dataloader_active.cgi line 46. Global symbol "$temp_hash" requires explicit package name at /exlibris +/sfx_ver/sfx_version_3/dz_3/sfxadmin/dataloader_active.cgi line 47. Execution of /exlibris/sfx_ver/sfx_version_3/dz_3/sfxadmin/dataloader_ +active.cgi aborted due to compilation errors. Premature end of script headers: dataloader_active.cgi
What might be the problem ?
Thanks,
Daniel.
20050725 Cleaned up by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding value to hash
by davorg (Chancellor) on Jul 25, 2005 at 13:04 UTC | |
|
Re: Adding value to hash
by Fletch (Bishop) on Jul 25, 2005 at 12:53 UTC | |
|
Re: Adding value to hash
by reasonablekeith (Deacon) on Jul 25, 2005 at 12:57 UTC | |
|
Re: Adding value to hash
by bofh_of_oz (Hermit) on Jul 25, 2005 at 13:13 UTC | |
by wazoox (Prior) on Jul 25, 2005 at 14:09 UTC | |
by reasonablekeith (Deacon) on Jul 25, 2005 at 13:20 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |