[Pdx-pm] Changing contructors w/o breaking compat.

Austin Schutz tex at off.org
Sat Oct 26 08:09:34 CDT 2002


On Fri, Oct 25, 2002 at 06:55:29PM -1000, Joshua Hoblitt wrote:
> 
> This was of course the very first thing I thought of however the difficulty is that you now have to pass in a ref to hash.  You know I think I've seen that somewhere before too.  I wonder if this is one of those things that morphed into knowledge because we all "read it someone".
> 
> >         my $object = Net::Ping->new({proto => $proto, device => $device});
>                                       ^                                  ^
> I was hoping to find a way to allow Net::Ping support both the old systax and the "newer 'more' conventional" one so I could send a patch to the author.
> Cheers,
> 

	Err.. Randal's solution supports both forms of the syntax.

	Btw, never seen the %{+shift} syntax before. Is that a new thing,
a sneaky trick, or have I been living under a rock?

	Austin



More information about the Pdx-pm-list mailing list