On Sunday, June 23, 2002, at 03:47 , Hytham Shehab wrote: [..]
Hytham - as I like to warn folks, "Oh sure, that's what you say today..." we all start at some place... and the simple library trick is probably where we all start... Remember that you have to in essence 'fully qualify' the path to the file - complete with 'extension' - I just checked. You either do this with the 'use lib' trick - so that perl goes and looks through the 'library path' @INC - or you can 'hard code it in place. And FREAK ME - you can do the require "/Users/drieux/lib/perl/WebAccess.txt"; And the freaking code STILL works..... > all what i want is simply put all my used subroutines in a seperate files, > then call the subroutine from that file whenever i want to use the > subroutine, am i clear now? [..] Well I hope this will help you: http://www.wetware.com/drieux/pbl/perlTrick/subStuff/SimpleLib/ that is some dusty old code.... and I have also included a reference to download it as a perl module. The cool part about having it as a perl module in the format it is in - is that it will install into your site_perl section, hence you would not need the use lib trickery... And you can call it out in the standard forms. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]