if ($open_tag eq 'div'
You don't actually use references, symbolic or otherwise. You're asking to create aliases.
It's actually possible to do what you want without even using Data::Alias.
push @{ $this->{local_vars} }, sub { \@_ }->(my ( $open_tag, $tagprint, $cur_class, $cur_id, $defines_class, $defines_id, )); ... if ($open_tag eq 'div' and $cur_class eq 'pager') {...
Of course, it might wiser to actually use references.
my @local_vars; push @{ $this->{local_vars} }, \@local_vars; my ( $open_tag, $tagprint, $cur_class, $cur_id, $defines_class, $defines_id, ) = \@local_vars[0..5]; ... if ($$open_tag eq 'div' and $$cur_class eq 'pager') {...
In reply to Re: possible to assign symbolic references?
by ikegami
in thread possible to assign symbolic references?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |