Re: Uninitialized value in pattern match

2008-03-31 Thread Rob Dixon
Johan wrote: > > 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...) Som

Re: Uninitialized value in pattern match

2008-03-31 Thread Rob Coops
Hi Johan, Ok so lets first of all see what is in this variable called: $PkgList I suggest using a command like, just before the foreach loop (for testing puropses): use Data::Dumper; print Dumper $PkgList; You can remove this after a single run, this will print the contents of the variable to STD