Chris Devers
<[EMAIL PROTECTED]
m> To
Adedayo Adeyeye
11/01/2005 10:42 <[EMAIL PROTECTED]>
AM cc
[email protected]
Subject
Please respond to Re: uninitialized variable
[EMAIL PROTECTED]
l.org
On Tue, 1 Nov 2005, Adedayo Adeyeye wrote:
> my $action = param('form_action');
Try setting a default value when 'form_action' isn't specified:
my $action = param('form_action') or '';
Or set it to 0, or 'do nothing' or undef, or whatever is appropriate.
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
************************************************************************************
************************************************************************************
from Perl Best Practices
use
my $action = param('form_action') | | q{ }
instead of
or ' '
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>