Perl Gurus,
How can I set global variables in perl.?
I'm trying to do something like..
if(param())
{
my $myvar=param("myvar");
if(param("myvar2"){
use $myvar here..
Has some script to show a form..
}
else {
On submitting the form, user enters here..
someother use of
ce files, pull the variables.pl file in with a
require..
require 'variables.pl';
BTW, the third method is how you would define global variables in Perl, I
believe..
Pick whichever works for you :o), I'd personally prefer either the style sheet or
configuration file approach...
Hello jason,
Friday, November 02, 2001, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
jwc> Need some help.
jwc> I think that I need to be using global variables. Unless Someone has a>
jwc> better solution.
jwc> What I am trying to do is. I want to set a variab
;
Sent: Friday, November 02, 2001 7:47 AM
Subject: Global Variables
> Need some help.
>
> I think that I need to be using global variables. Unless Someone has a>
> better solution.
>
> What I am trying to do is. I want to set a variable for such things as
>
> FONT_C
On Thu, 1 Nov 2001 [EMAIL PROTECTED] wrote:
> Need some help.
>
> I think that I need to be using global variables. Unless Someone has a>
> better solution.
>
> What I am trying to do is. I want to set a variable for such things as
>
> FONT_COLOR=00
Need some help.
I think that I need to be using global variables. Unless Someone has a>
better solution.
What I am trying to do is. I want to set a variable for such things as
FONT_COLOR=00
BACKGROUND_COLOR=55
For example: So that I do not have to go through ev