- or download this
while ($output =~ m/...re.../sg) {
... process block ...
}
- or download this
$re = qr{AMQ8409.*?QUEUE\((.*?)\).*?RQMNAME\((.*?)\).*?RNAME\((.*?)\).
+*?end};
- or download this
while ($output =~ m/(AMQ8409.*?end)/gs) {
my $block = $1;
...
# process block
# use $hash{QUEUE}, $hash{RQMNAME}, $hash{RNAME}, etc.
}
- or download this
my %hash;
while (<>) {
...
# ... add more variables of interest ...
}
}