[Q]Setting global variables.

2002-02-22 Thread Bhanu Prakash
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

Re: Global Variables

2001-11-02 Thread Thimal Jayasooriya
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...

Re: Global Variables

2001-11-02 Thread Maxim Berlin
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

Re: Global Variables

2001-11-02 Thread Roger C Haslock
; 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

Re: Global Variables

2001-11-01 Thread Eric Pretorious
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

Global Variables

2001-11-01 Thread jason
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