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 $myvar.. Here, my script is showing value of $myvar as null. I wanted to use the same value of myvar which I had before submitting the form. } Am I missing something? Or should I set a global variable for myvar?! Thanks Bhanu. ===== Bhanu Prakash G V S __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.comThread Next