in reply to uninitialized variables
or shorter:unless (defined $variable) { # if undefined $variable = 0; # set to standard value }
or:defined $variable or $variable = 0;
$variable = 0 unless defined $variable;
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: uninitialized variables
by fuzzyping (Chaplain) on Mar 28, 2002 at 23:22 UTC | |
by strat (Canon) on Mar 29, 2002 at 12:25 UTC | |
|
Re: Re: uninitialized variables
by caitsdeo (Novice) on Mar 28, 2002 at 17:13 UTC |