in reply to Re: Trying to optimize de-referenced hash slice without scope variables...
in thread Trying to optimize de-referenced hash slice without scope variables...
Fellow boriz
Thank you very much for your suggestion, but I'm not sure if
is the same thing asperl -MData::Dumper -e "print Dumper @{$_[3]}{'a','b','c','d'}, $_[3]; + " $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = '1';
or I'm doing something really wrong here, or your data structure definition is not the same as my example. :-) Nice try, anyway.perl -MData::Dumper -e 'print Dumper @$data{"a","b","c"}, $data' $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = { 'c' => undef, 'a' => undef, 'b' => undef };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trying to optimize de-referenced hash slice without scope variables...
by Joost (Canon) on Jun 15, 2004 at 17:31 UTC | |
by monsieur_champs (Curate) on Jun 15, 2004 at 17:56 UTC | |
|
Re^3: Trying to optimize de-referenced hash slice without scope variables...
by borisz (Canon) on Jun 15, 2004 at 17:37 UTC |