Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: use or require ?

by valdez (Monsignor)
on Oct 01, 2007 at 12:37 UTC ( #641868=note: print w/replies, xml ) Need Help??

in reply to use or require ?


in similar cases I use UNIVERSAL::require; from module synopsis:

# This only needs to be said once in your program. require UNIVERSAL::require; # Same as "require Some::Module" my $module = 'Some::Module'; $module->require or die $@; # Same as "use Some::Module" BEGIN { $module->use or die $@ }

Ciao, Valerio

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://641868]
[atcroft]: abner: So you are wanting to do something like my $sth = $dbh->prepare(' SELECT * FROM charge WHERE col1 = ? and col2 = ?;'); $sth->execute(' asdf', 'asdw');?
[atcroft]: (Full disclosure: I may have the idea right but small typographical errors, so please test any code I suggest. :) )
[atcroft]: abner: Or are you wanting to do something where you need to bind an array to a placeholder (in which case the bind_param_array method may be of use.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-01-24 03:57 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (202 votes). Check out past polls.