I'm having trouble with the following code snippet:
I initally tried:next unless ($path =~ /[\.txt|\.log]/);
This would seem so simple! :(next if !($path =~ /[\.txt|\.log]/);
edited: Wed May 14 20:47:13 2003 by jeffa - code tags
In reply to next if regex matches by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |