SOrry...I was referring to the BEGIN around the push as being the old way, which is now less favored to the use lib way.
Don't understand the question, though I think it probably has something to do with having to group reply?? http://danconia.org David Zhuo wrote: > yeah. not sure what you mean by "old" way thought? > > use lib is safer and is the preferred method most of the time because > you don't want your script to die mid-way during run time. you want to > catch the error as soon as possible before your script even start. > > by the way, when i reply, how come i don't see my replied message showed > up in the mailing list? i am new to this mailing list :-) > > david > > On Mon, 2002-08-19 at 14:38, Wiggins d'Anconia wrote: > >>aka, use lib is like placing the push in a BEGIN block....which I think >>was the "old" way of doing things... >> >> >> >>David Zhuo wrote: >> >>>push @INC, 'the/path/you/want' >>> >>>is different than: >>> >>>use lib 'the/path/you/want' >>> >>>from a user's perspective, they are the same but they are not under the >>>hood. what happen is that that push statement is a run time statement. >>>the use lib statement is a compile time statement. don't confuse the 2. >>>to avoid run-time error, use lib is best. otherwise, the push statement >>>can be used. >>> >>>david >>> >>>On Mon, 2002-08-19 at 12:18, Connie Chan wrote: >>> >>> >>>>or can try >>>> >>>>push @INC, 'the/path/you/want'; >>>> >>>>Rgds, >>>>Connie >>>> >>>>----- Original Message ----- >>>>From: "root" <[EMAIL PROTECTED]> >>>>To: <[EMAIL PROTECTED]> >>>>Sent: Tuesday, August 20, 2002 2:19 AM >>>>Subject: Re: Can't locate loadable object DBD::mysql in @INC >>>> >>>> >>>> >>>> >>>>>to force @INC to look at the directory of your DBI library, use: >>>>> >>>>>use lib "your DBI directory" >>>>> >>>>>along the top of your script >>>>> >>>>>david >>>>> >>>>> >>>>>-- >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>> >>>> >>>>-- >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >>-- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]