splitOnce has asked for the wisdom of the Perl Monks concerning the following question:
where I am trying to only mach the .bld that aren't follwed with # like in the follwing data :while (<OUT>) { push(@hold1, $1) && last if (m/(\w+\.bld)/); } my $hold11 = join(' ', @hold1);
I only want to match the .bld in the third line since it is not followed # , so my code is catching the first one , I do wanna catch only one but not the ones followed by # .. so do you see the problem .. thanks../nbssbase/ip/bld/libipGH040.bld:57:# Reflecting change of eni.cxx ../nbssbase/ip/bld/libipGH060.bld:60:# Reflecting change of eni.cxx ../nbssbase/ip/bld/lib.bld:17:eni.cxx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: match and regex
by Shendal (Hermit) on Aug 13, 2002 at 19:34 UTC | |
by splitOnce (Acolyte) on Aug 13, 2002 at 19:43 UTC | |
by Shendal (Hermit) on Aug 13, 2002 at 19:47 UTC | |
|
Re: match and regex
by Zaxo (Archbishop) on Aug 13, 2002 at 19:42 UTC | |
by splitOnce (Acolyte) on Aug 13, 2002 at 19:49 UTC | |
|
Re: match and regex
by thelenm (Vicar) on Aug 13, 2002 at 19:37 UTC | |
|
Re: match and regex
by fruiture (Curate) on Aug 13, 2002 at 19:34 UTC |