in reply to Arg passing trick that fails in perl 5.8

As pfaut hinted at - what's the problem with using a simple hash?
sub not_at_all_odd_args { my($this, %args) = @_; print $args{x},"\n"; }
This will work the same on any version of Perl 5.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Arg passing trick that fails in perl 5.8
by tall_man (Parson) on Jan 13, 2003 at 03:47 UTC
    There is nothing wrong with a simple hash in my book, but this particular programmer has developed a style where he will never use a simple hash or array when he can use a reference instead. He thinks it simplifies the syntax.