Re: Where to use 'use'

2003-03-13 Thread Scott R. Godin
Jeff Westman wrote: > Hello All, > > I have a trivial question. I have a perl script, with several > sub-routines. > In one of those routines, I currently have listed 'use Date::Calc'. So > that package is therefore only available (and needed) in that one > sub-routine. > > My question is, sho

RE: Where to use 'use'

2003-03-12 Thread Bakken, Luke
rs > Subject: RE: Where to use 'use' > > > I see your point, and agree with you. > > My feeling was the same, to put it at the top. When I ran > your script, it > didn't make any difference when calling the other routine (I > didn't expect > that

RE: Where to use 'use'

2003-03-12 Thread Jeff Westman
I see your point, and agree with you. My feeling was the same, to put it at the top. When I ran your script, it didn't make any difference when calling the other routine (I didn't expect that to work). Thanks, Jeff --- "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> wrote: > There is no added value tr

RE: Where to use 'use'

2003-03-12 Thread NYIMI Jose (BMB)
There is no added value trying to make a module only available for one subroutine, I'd 'use' them (modules) all at the top of the script. (for readability and maintainance reasons). Try this and note how Data::Dumper module is available from suby, Even though it was 'used' inside subx. #!/usr/bin