perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
Expandplf_updates.txt:- /****************************ORPHANED FILES*************************** +/ //source/modem/hdr/cp/rel/07.01.00.13.20/inc/hdr.c#2 //source/modem/hdr/cp/rel/07.01.00.13.20/inc/hdrscmgmmcdp.h#2 /*************************** FILES IN VU's***************************/ /******************************* PLF's******************************/ my $expand_line = <Expandplf_updates.txt>; open my $FH, '<', "$expand_line" or die "could not open $expand_plf - +$!"; while (<$FH>) { chomp; print "IN\n"; next unless ( m:(\/\/.+?)#(\d+)$: );//why is the above input not m +atching this line. print "\nMATCH DATA:$1 $2";//doesnt print this
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex not matching
by ikegami (Patriarch) on Jan 29, 2011 at 04:28 UTC | |
by Anonymous Monk on Jan 30, 2011 at 03:45 UTC | |
by choroba (Cardinal) on Jan 31, 2011 at 18:05 UTC | |
by perl_mystery (Beadle) on Jan 29, 2011 at 04:32 UTC | |
by ikegami (Patriarch) on Jan 29, 2011 at 04:38 UTC | |
by perl_mystery (Beadle) on Jan 29, 2011 at 04:46 UTC | |
by ikegami (Patriarch) on Jan 29, 2011 at 04:48 UTC | |
| |
by perl_mystery (Beadle) on Jan 29, 2011 at 04:34 UTC | |
by ikegami (Patriarch) on Jan 29, 2011 at 04:42 UTC |