sonalig has asked for the wisdom of the Perl Monks concerning the following question:
It gives me the error: Use of uninitialized value in pattern match (m//). What am I missing here? Thanks in advance.open(FILE,$license) || die ("Could not open the file\n"); @file=<FILE>; $find="license @abc"; foreach $line (@file){ if ($line =~/$find/) { print "Found!!!!!!\n"; print "$line\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to find a pattern
by GrandFather (Saint) on Jun 10, 2008 at 23:31 UTC | |
|
Re: Unable to find a pattern
by massa (Hermit) on Jun 10, 2008 at 22:28 UTC | |
|
Re: Unable to find a pattern
by ww (Archbishop) on Jun 11, 2008 at 01:53 UTC |