in reply to Re^2: Development version of a script?
in thread Development version of a script?

No you aren't missing anything - my bad. The eval cat option should be using backticks, not double quotes, e.g. eval `cat myfile.pl`

My apologies.

If that doesn't help then perhaps you could show a reduced version of your whole set up using just 1 or two variables. Even with the backticks, to get this to work you must take care with how you declare your variables. You will need to declare your variables in the calling script. If you declare them as "my", your config file should merely set variables and not declare them (no my). Alternatively you can declare your variables in both the calling and config script if you use our.

Replies are listed 'Best First'.
Re^4: Development version of a script?
by kurt2439 (Sexton) on Feb 08, 2011 at 02:03 UTC

    I was being too dependent and not thinking about the code you were giving me to run -- should have caught your meaning and put in the backticks...

    Now I am understanding you -- I was trying to completely remove the variables from the main script, but I see what you mean about needing them declared in the main script and then just setting them in the "config" file. I haven't tested but I get it now -- thanks!