in reply to Arg passing trick that fails in perl 5.8
Are you sure there wasn't a prototype?sub odd_args { my ($this, $args) = @_; print $args->{x},$/; } sub odd_args { my ($this, %args) = @_; print $args{x},$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Arg passing trick that fails in perl 5.8
by pfaut (Priest) on Jan 10, 2003 at 16:52 UTC | |
|
Re: Re: Arg passing trick that fails in perl 5.8
by tall_man (Parson) on Jan 10, 2003 at 16:20 UTC |