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;
In reply to Re: Confusion with finding strings in command output
by Laurent_R
in thread Confusion with finding strings in command output
by pgduke65
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |