in reply to changing to strict-- problems with 'require files'

Actually, it's $whatever::cgi_path. A couple of slutions:

  1. Automate the changing process. Write a Perl program that uses regexes to chage all instances of these vars into there fully gualified version
  2. use Exporter and export these symbols into the main package and then use our. Both of these things are so useful if you don't know how to use them, learning would benefit elsewhere.

I personally would use the latter, as it requires the least typing and effort, while at the same time being more guarenteed of success.

Good luck!

Cheers,
Erik

Replies are listed 'Best First'.
Re: Re: changing to strict-- problems with 'require files'
by frinky (Novice) on Apr 23, 2002 at 14:05 UTC
    Thanx for the advice, you're absolutely right about the $whatever::cgi_path.
    And also about the possibility to automate the vars-change, but it would still be pretty annoying to write every new line with '$whatever::' before '$some_var' (without the '$' in that case)
    I'll go look for some explanation about Exporter.
    Thanx for your help!