I have the following script:
..my $variable = ""; # Global variable, right?
if (true/false) { sub3(); }
elsif (true/false) { sub2(); }
else { sub1(); }
## The point with this, is that sub1 is always called first, then sub2, then
## sub3. This works perfectly.
sub sub1{
....
}
sub sub2{
$variable = param("from_sub1"); ## This param is inputed in sub1, works fine
}
sub sub3{
open (VAR, ">>$variable") or die("Can't open $variable: $!\n"); ##�Fails.
}
Here are some of the error messages I get:
Use of uninitialized value in concatenation (.) at script.cgi line 55.
Use of uninitialized value in concatenation (.) at script.cgi line 55.
Can't open : No such file or directory
Any help, hints or tips would be appreciated.
Tor
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]