ColtsFoot has asked for the wisdom of the Perl Monks concerning the following question:
This works for the first 40-50 lines and then seem to give up$line =~ s:\|\|:\|\\N\|:g
Has any one any ideas?#!/usr/bin/perl -w use strict; open INPUT, 'try.asc'; while(my $line=<INPUT>) { print qq(Original line = $line); $line =~ s/\|\|/\|\\N\|/g; print qq(New line = $line); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Broken regexp
by Abigail-II (Bishop) on Mar 09, 2004 at 13:22 UTC | |
Re: Broken regexp
by Juerd (Abbot) on Mar 09, 2004 at 13:02 UTC | |
Re: Broken regexp
by jbware (Chaplain) on Mar 09, 2004 at 13:24 UTC | |
Re: Broken regexp
by matija (Priest) on Mar 09, 2004 at 13:17 UTC | |
by Juerd (Abbot) on Mar 09, 2004 at 13:26 UTC | |
by Abigail-II (Bishop) on Mar 09, 2004 at 13:44 UTC | |
by Juerd (Abbot) on Mar 09, 2004 at 14:06 UTC | |
by liz (Monsignor) on Mar 09, 2004 at 14:31 UTC | |
by Juerd (Abbot) on Mar 09, 2004 at 14:47 UTC | |
by ysth (Canon) on Mar 09, 2004 at 16:20 UTC | |
by Abigail-II (Bishop) on Mar 09, 2004 at 13:29 UTC |