in reply to Re^2: uninitialized value $_ in pattern match (m//)
in thread uninitialized value $_ in pattern match (m//)

You read a variable named $file, but you never declared such a variable, much less assigned a value to it.

I hadn't even seen that one! Goes to show how important use strict; is.

Replies are listed 'Best First'.
Re^4: uninitialized value $_ in pattern match (m//)
by gvinu4u (Acolyte) on Jun 23, 2011 at 04:13 UTC
    Thanks a lot for the notification, I fixed it and again ran it and I got the same error n same amount of information :(

    Use of uninitialized value $subfamily in pattern match (m//) at Test.pl line 37, <$list> line 7.

    Use of uninitialized value $_ in pattern match (m//) at Test.pl line 42, <$list> line 7.

    Use of uninitialized value $family in concatenation (.) or string at Test.pl line 44, <$list> line 7.

      Show your new code