Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Style Question: Throwaway Objects

by seattlejohn (Deacon)
on Dec 09, 2002 at 00:43 UTC ( [id://218414]=note: print w/replies, xml ) Need Help??


in reply to Re: Style Question: Throwaway Objects
in thread Style Question: Throwaway Objects

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';

  • Comment on Re: Re: Style Question: Throwaway Objects

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://218414]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found