Re: problams with IO::Socket::INET

Tuomas Lukka (lukka@fas.harvard.edu)
Tue, 27 Jan 1998 18:31:30 -0500 (EST)


> package A;
> @ISA = qw(IO::Socket::INET);
> 
> sub new {
>     my $p = shift;
>     my $sock = $p->SUPER::new(@_);
> 
>     # now pick my args from @_
> }

There must be a way of handling this reasonably simply without
being unable to croak on invalid arguments. There *MUST* be.

And there are, several, requiring us only to agree on a convention.
E.g.

	package A;
	@HASHARGS = (@IO::Socket::INET::HASHARGS, FooBar, Bletch);

Or possibly including the name of the function (so that functions
other than 'new' can take them: @NEW_ARGS.

	Tuomas