in reply to word boundary match problem
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\
|
|---|