Uninitialized value in pattern match



The last line of this code
foreach $PkgFile( @$PkgList )
{
if( $PkgFile =~m/^\s*$/)

gives this warning message
Use of uninitialized value in pattern match (m//) at packagefile.pm
line 838.

How can I solve this? (I have no idea what the code does...)


.



Relevant Pages