![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl - if conditions is meet, push the last field of $_ into an array | popeye | Shell Programming and Scripting | 1 | 12-10-2008 02:16 PM |
| perl array question from going through hash | hankooknara | Shell Programming and Scripting | 2 | 07-29-2007 10:53 PM |
| shift and push question in perl | hankooknara | Shell Programming and Scripting | 5 | 06-29-2007 07:37 AM |
| hash,array and perl | new2ss | Shell Programming and Scripting | 3 | 05-23-2007 12:30 PM |
| Hash within array, within hash, within array... | jsmoriss | Shell Programming and Scripting | 1 | 07-10-2006 10:26 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
PERL, push to hash of array problem
Code:
$key = "a";
$value = "hello";
%myhash = {} ;
push @{ myHash{$key} }, $hello;
print $myHash{$key}[0]."\n";
this script prints "hello" but has following error message. Code:
Reference found where even-sized list expected at ./test line 5. can any one help me to fix this problem?? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|