Fellow Monks
First of all, this is not homework. I have a real problem behind this and can send full source code of my (unpublished) TWiki's MessageBoardPlugin if you want to see it.
My problem is optimization. I'm sure that using @_ instead of copying functions args to scopped variables is faster, and need to use this here:
# inputBox( $url, $msgid, $action, \%data ) sub inputBox{ my $data = $_[3]; # some code here... # some processing here... return $result . map this($_), # hash de-ref and slicing at the same time... # however, can't do this with $_[3], syntax error. @$data{'a','b','c','d'};
I would like to use $_[3] instead of $data, but I can't, it generates a syntax error.
So what I need is a way to slice a de-referenced hash in just one shot. Any sugestions?
Thank you very much for your help.
In reply to Trying to optimize de-referenced hash slice without scope variables... by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |