Simple fix you escape the $ for $t and $_ using \ before dollar sign
untestedmy @vars = ('instance1','instance2',..); foreach (@vars) { eval "sub $_ { my \$self = shift; if (@_) { \$self->{$_} = shift; } return \$self->{$_}; }"; }
In reply to Re: How do I get to this 'simple' helper?
by bluescreen
in thread How do I get to this 'simple' helper?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |