{ my %template_var; my ($key,$val) = split '=', $linefromtemplate; $template_var{$key} = $val; }
{ package template_var; my ($key,$val) = split '=', $linefromtemplate; no strict 'refs'; $$key = $val;# left out symbolic dereference use strict 'refs'; }
In reply to RE: RE: RE: keeping $$this defined locally
by princepawn
in thread keeping $$this defined locally
by Specimen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |