in reply to Re: regex expression help
in thread regex expression help
that way the file 'abc' in @namedFiles won't be tripped up if 'abcd' is in @dependantFilesmy @dependantFiles = ( 'aa', 'bb', 'cdef' ); my @namedFiles = ( 'cc', 'bb', 'dde' ); for my $y ( @dependantFiles ) { if( grep /^$y$/i, @namedFiles) { print "Found $y \n"; last; } else { print "not $y \n"; } }
|
|---|