in reply to Accessing Variables in Different Subroutines

Please be more specific. Which variables, under what conditions, with what inputs?

Dum Spiro Spero
  • Comment on Re: Accessing Variables in Different Subroutines

Replies are listed 'Best First'.
Re^2: Accessing Variables in Different Subroutines
by stefl (Acolyte) on Mar 19, 2015 at 15:36 UTC

    I've tried to edit the code I've provided to be more specific but I don't really know what you mean. I have 2 variables, $randomString and $file and I would like them to have the same values in each subroutine. The code I've provided is a cgi script (functioning) and illustrates the these variables have different values in each subroutine.