in reply to Re: Re: Re: can't write a variable to a file
in thread can't write a variable to a file

ok..I know how to run subroutines. I am calling the routine near the top of the file (to keep things organized). This code works when I call the sub. However, it only runs when a string is outputted e.g. "hello" not $hello="hello"..that's the issue here.
  • Comment on Re: Re: Re: Re: can't write a variable to a file

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: can't write a variable to a file
by ysth (Canon) on May 11, 2004 at 10:44 UTC
    Sorry, just looked like you were assuming you didn't need to call the subroutine.

    Do you call the routine before setting the variable??