I'm surprised this works at all - it certainly isn't doing what you think it is. The :
is actually doing a glob based on the contents of the file and is making $_ the actual line where (not unexpectedly) there isn't a match.while(<@source>) { ... }
I think you meant:
orforeach ( @source ) { ... }
if the latter you will need to move the close to after the loop.while(<SOURCE>) { ... }
/J\
In reply to Re: word boundary match problem
by gellyfish
in thread word boundary match problem
by martymart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |