in reply to Re: Can't use string (">> /$1/$2/figs/Com/dis") as a symbol ref while "strict refs" in use
in thread Can't use string (">> /$1/$2/figs/Com/dis") as a symbol ref while "strict refs" in use

Because the reported error message cannot result from the code that was shown, it does no good telling them to use 3 arguments to open instead of only 2. That is not where the problem lies. Somehow the code shown is not what is really happening. You cannot fix this just by adding another argument. You have to stop using a string in the first argument: there is no other issue here.
  • Comment on Re^2: Can't use string (">> /$1/$2/figs/Com/dis") as a symbol ref while "strict refs" in use

Replies are listed 'Best First'.
Re^3: Can't use string (">> /$1/$2/figs/Com/dis") as a symbol ref while "strict refs" in use
by wind (Priest) on May 03, 2011 at 09:55 UTC
    it does no good telling them to use 3 arguments to open instead of only 2

    Yes, the error message received was not immediately diagnosable given the code shown. Therefore, the only action I could see was to lead the OP toward fixing the 4 things obviously wrong with his code, hopefully leading him toward receiving a more meaningful error message.

    There's certainly some good from that, *fingers crossed*