razmeth has asked for the wisdom of the Perl Monks concerning the following question:
if($output[$x+2] !~ /.*match1.*/ and $output[$x+2] =~ /.*(match2).*/ a +nd $output[$x] =~ /.*(match3).*/ and $output[$x+1] =~/.*(match4).*/){ #Then be able to access all matched variables }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Multiple If Conditions with Match Variables
by choroba (Cardinal) on Dec 31, 2015 at 17:58 UTC | |
by razmeth (Acolyte) on Dec 31, 2015 at 19:00 UTC | |
|
Re: Perl Multiple If Conditions with Match Variables
by Laurent_R (Canon) on Dec 31, 2015 at 18:22 UTC | |
|
Re: Perl Multiple If Conditions with Match Variables
by AnomalousMonk (Archbishop) on Dec 31, 2015 at 20:33 UTC |