http://qs321.pair.com?node_id=327864


in reply to Re: Use of uninitialized value in pattern match (m//)
in thread Use of uninitialized value in pattern match (m//)

my $tmp2 = $2;

This does not make $tmp2 defined if $2 is undefined. Don't you mean something like:

my $tmp2 = length $2 ? $2 : '';
Or, if you have the defined-or patch installed, something like:
my $tmp2 = $2 // '';

Liz