Idiomatically,
my $btn = param ('btn'); if (defined ($btn) && $btn eq 'btn') { ... }
or
use 5.010; my $btn = param ('btn') // ''; if ($btn eq 'btn') { ... }
Or see warnings for taking off the seatbelts - but don't even think about doing that until you understand what you're doing.
🦛
In reply to Re: uninitialized value
by hippo
in thread uninitialized value
by frank1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |