passing blessed thingies as parameters

Liyang Hu liyang at nerv.cx
Thu Dec 27 17:48:29 CST 2001


How? I'm not even sure what to look up for this. Say I wanted to do
something like this:

	use Mail::Audit;
[0]	sub foo($)
	{
	    $ma = shift();
	    $ma->accept(...yada...);
	}
	$mail = new Mail::Audit;
	foo($mail);

perl barfs on the $ma = shift() line. Obviously sub foo doesn't even
know what it was passed, so I don't think $ma->accept()'s going to
work either.

Enlightenment, anyone?

/Liyang
[0] The mailing list manager barfed upon seeing this line the last
time I sent this.
-- 
.--| Liyang Hu |--| http://nerv.cx/ |--| Caius at Cam |--| ICQ: 39391385 |--.
| HELLO KITTY gang terrorizes town, family STICKERED to death!           |



More information about the Belfast-pm mailing list