in reply to Confusion with finding strings in command output
is looking for an exact match of the output line in the hash (i.e. with an hash key), which is probably never going to occur (at the very least, the output line will have a trailing end of line character, but probably also some other words, such as 'XORDER' in your example). You need to use a loop with a regex.my @FileErrors = grep { exists $ErrorStrings{$_} } @Output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Confusion with finding strings in command output
by pgduke65 (Acolyte) on Aug 30, 2014 at 19:18 UTC |