That's one way to do it. Alternatively you can initialise $some_value when you define it.
my $some_value = '';
Or use many other techniques to ensure that it contains data before you try to use it.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: use warnings => Use of uninitialized value...
by davorg
in thread use warnings => Use of uninitialized value...
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |