pelagic has asked for the wisdom of the Perl Monks concerning the following question:
@run{$runtype}{$pid}{keys %message} = values %message; # Error: Can't use subscript on hash slice while ( my ($k,$v) = each(%message) ) { $run{$runtype}{$pid}{$k} = $v; } # works fine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: merge/add hash to hash-slice
by broquaint (Abbot) on Jun 08, 2004 at 11:51 UTC | |
by pelagic (Priest) on Jun 08, 2004 at 11:56 UTC | |
|
Re: merge/add hash to hash-slice
by BrowserUk (Patriarch) on Jun 08, 2004 at 11:56 UTC |