in reply to possible to assign symbolic references?
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') {...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: possible to assign symbolic references?
by perl-diddler (Chaplain) on Sep 21, 2010 at 23:08 UTC | |
by ikegami (Patriarch) on Sep 21, 2010 at 23:33 UTC | |
by perl-diddler (Chaplain) on Sep 22, 2010 at 01:03 UTC | |
by ikegami (Patriarch) on Sep 22, 2010 at 02:13 UTC | |
by perl-diddler (Chaplain) on Sep 22, 2010 at 04:46 UTC | |
| |
by Anonymous Monk on Sep 21, 2010 at 23:11 UTC |