Along the lines of your initial code:
use strict; use warnings; my $PatchPath = "patch-5.1.1.21510.gpg"; my $output = "update patch-5.1.1.21510"; my @array = split /\s+/, $output; if ( grep { $PatchPath =~ /$_/ } @array ) { print "Match found\n"; }
SORRY: This post is somehow to far up in the chain. Should be a few posts further down...
In reply to Re^5: Multiline match
by hdb
in thread Multiline match
by arunbhargav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |