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"; } }
In reply to Unable to find a pattern by sonalig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |