in reply to uninitialized value
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.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: uninitialized value
by frank1 (Monk) on Jun 12, 2024 at 09:19 UTC |