pojif ( $output =~ /^(pattern1|pattern2)$/ ){ $hash{$key} = $1; } elsif ( $output_2 =~ /(pattern3)/ ){ $hash{$key} = $1; }
In reply to Re: Match a Variable to Only the True Statement
by poj
in thread Match a Variable to Only the True Statement
by razmeth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |