Obviously, I can't do $p->$key==$val, much as that would come in handy right now.
$ perl -le 'sub a { "x" } sub b { "y" }; $p = bless {}; for $key ( qw( + a b ) ) { print $p->$key() }' x y
Yes, you obviously can't do that.
In reply to Re: $var as accessor name?
by Fletch
in thread $var as accessor name?
by matija
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |