You want it to fail if one of them fails, correct? Try this:
if ( scalar( grep { /^$pattern/i } keys %$format ) < scalar( keys %$fo +rmat ) ) { ...
In reply to Re^5: check parameters
by hdb
in thread check parameters
by ag4ve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |