Always. Always check to ensure you have a match before you assign/use a numbered special var. If you're doing $something = $1, ensure $1 has what you want first.
Test what you've been shown on this thread, then throw in some unexpected data that'll match a success, but'll partially match a failure.
You stated you've been bitten before, so you already know the answer to your own question.
In reply to Re^9: Adding hashes to already existing array
by stevieb
in thread Adding hashes to already existing array
by ExReg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |