in reply to Arg passing trick that fails in perl 5.8
Try splitting the declaration and assignment onto two lines.
sub odd_args { my($this, $args); ($this, %$args) = @_; print $args->{x},"\n"; }
This still works on 5.6.1 and I think should get around the problem on 5.8 although I can't test it.
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
|
|---|