in reply to open() destroying my vars?

open HTML, ">$basepath/$basename.html";

This should work just fine. I use similar constructs all the time, without a problem. As long as the first two substitutions are happening, then the file has been opened. Perhaps give us a small sample data file that causes the action you describe?

Replies are listed 'Best First'.
RE: Re: open() destroying my vars?
by theorbtwo (Prior) on Jul 30, 2000 at 01:07 UTC
    An exelecent point... however, upon looking further, both doing the substitution elsewhere and putting in an "or die", the script doesn't die. Moreover...
    1. It is going to the right file
    2. It works fine on three out of the four pages I'm using it for.
      I'm going to post a testcase for this soon, methinks.