Welcome to the Monastery | |
PerlMonks |
Re: Re: Style Question: Throwaway Objectsby seattlejohn (Deacon) |
on Dec 09, 2002 at 00:43 UTC ( [id://218414]=note: print w/replies, xml ) | Need Help?? |
Ah, good point about testing for an error in the constructor. I've got an or die... clause following the Parse call in the actual code, though I omitted it for simplicity's sake in the example above. But I suppose you're right that if Spreadsheet::ParseExcel->new() returned an invalid object reference for some reason, then that would bungle up the method call and generate an error that might not be very obvious.
$perlmonks{seattlejohn} = 'John Clyman';
In Section
Meditations
|
|