Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Initial Variables

by thinker (Parson)
on Nov 25, 2002 at 18:33 UTC ( [id://215691]=note: print w/replies, xml ) Need Help??


in reply to Initial Variables

Hi Angel,

have you considered passing the db handle in as a key => value pair, like
my $foo=new foo(handle=>$dbh, bar=>"baz", ...);

then you can assign it to a hash in new(), as in the example you gave.

Of course, really that is just passing it in as an array (or list), but you don't have to think of it that way. :-)

Hope this helps

thinker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found