Thanks for the people who responded to original query. Another related query. Whats the best way to specify common set of include library directories, so that I don't end up including (use lib OR "-I") in each file using my local modules. (recursive include!)
> _____________________________________________ > From: Kumar, Akshay > Sent: Thursday, March 22, 2007 5:11 PM > To: 'beginners@perl.org' > Subject: Some basic perl queries > > Hi All, > I am playing around with a set of perl scripts. Need to figure out > following things. > A) move out common code from the set of scripts and have them include > that common code. (something equivalent of #include!) . Most of the > common code is about some arguments (proxy-url, database, user, pass > ...), which are currently hard coded in these scripts. I don't want to > end up editing each of the file when I want to change my params. > B) I am using some perl modules installed locally. Whats the best way > to specify include path. Currently I am using "-I" option hardcoded in > each of the .pl files, and I will be running these as crontab jobs. > Thanks in advance, > Akshay