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 };
In reply to Re^2: Trying to optimize de-referenced hash slice without scope variables...
by monsieur_champs
in thread Trying to optimize de-referenced hash slice without scope variables...
by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |