This will only match if there is no "#" character in the string after ".bld".while (<OUT>) { push(@hold1, $1) && last if (m/(\w+\.bld)(?!.*?#)/); } my $hold11 = join(' ', @hold1);
-- Mike
--
just,my${.02}
In reply to Re: match and regex
by thelenm
in thread match and regex
by splitOnce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |