2009/11/25 Steve Bertrand <st...@ibctech.ca>: >> >> ${$self->{__pb_template_list}}[...@{$self->{__PB__TEMPLATE_LIST}}}]->param( >> $param, $value ); >> >> As I understand it, $# has been deprecated in 5.10.
Ouch! Really. That's a shame. Can someone please >> help me understand the above line of code? What does $# represent in >> this context? > > Well, I finally trudged through it. In order to make it work: > > my $elem = �...@{ $self->{__PB_TEMPLATE_LIST} }; > $elem--; > ${$self->{__PB_TEMPLATE_LIST}}[$elem]->param( $param, $value ); > > Not the most elegant solution, but it works for now! Could you use -1 instead, a bit like this (untested): ${$self->{__pb_template_list}...@{$self->{__PB__TEMPLATE_LIST}}} -1 ]->param( $param, $value ); Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/