Bob Showalter [BS], on Friday, February 11, 2005 at 08:07 (-0500) typed the following:
BS> Well, Bar.pm can't see the my() variable in your main program, so you need BS> to: BS> a) pass $dbh to db_get(), or ok, this seems good for me, I call all db_operations with reference of hash, so I can: $roh->{dbh} = $dbh, and after call db_get($roh), right ? BS> b) set up some kind of variable in Bar.pm to hold the db handle and either how ? BS> set it directly ($Bar::dbh = $dbh), hm, this looks ugly :) BS> or pass it to some routine (Bar->set_handle($dbh)), or this is better I guess, how look example of this in Bar.pm ? BS> c) Have $dbh live in Bar.pm and use Exporter to export it back to the main BS> program, or I want set $dbh in main script. BS> (lots of other ways...) perl = so many possibilities (because I like it!) -- ...m8s, cu l8r, Brano. [IBM OS/2 Beta testing, at Warp II.] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>