|
|
| There's more than one way to do things | |
| PerlMonks |
uninitialized value $_ in pattern match (m//)by gvinu4u (Acolyte) |
| on Jun 23, 2011 at 03:11 UTC ( #911001=perlquestion: print w/ replies, xml ) | Need Help?? |
|
gvinu4u has asked for the
wisdom of the Perl Monks concerning the following question:
Hi all, this is the program that I have and working fine except one issue In addition to the expected output I get the below for every iteration, not sure as why I'm getting it. Use of uninitialized value $subfamily in pattern match (m//) at Test.pl line 34, <$list> line 59. Use of uninitialized value $_ in pattern match (m//) at Test.pl line 39, <$list> line 59. Use of uninitialized value $family in concatenation (.) or string at Test.pl line 41, <$list> line 59. line 34 is-->if ($subfamily =~/a-z/) line 39 is--> if ( $name = ~/a-z/)
Back to
Seekers of Perl Wisdom
|
|