in reply to Re: indirect object in camel book
in thread indirect object in camel book
How about this?open MYCLASS, "$filename"; print MYCLASS; #print to MYCLASS or call MYCLASS->print?
And this?sub new(*) {...} open MYCLASS, $filename; new MYCLASS; #main::new(*MYCLASS) or MYCLASS->new?
In all those (except the first) it calls main::new, passing it the filehandle. And since filehandles autovivify, you don't even need to have it open()ed.sub new(*) {...} open CGI, $filename; new CGI; #main::new(*CGI) or CGI->new?
=cut
--Brent Dax
There is no sig.
|
|---|