in reply to Out-commenting and formating challenge
#!perl -w use strict; for (1..2) { print "# " . <DATA>; } while (<DATA>) { unless (s/(\/apost.*?)(\s*f\(fix,1371\)\s+core\(60000\))(.*$)/"$1,r +ecord(1371)$3"/) { s/(\/apost.*$)/"$1"/; } print; } __DATA__ win-Line<br> otsort ../data/ABC_DE_WKey_out.dat ../data/ABC_DE_WKey_out.srt /apost +s(1001,8,c,a) om(1001,1,c,EQ,' ') f(fix,1371) core(60000)<br> <br> Unix-Line<br> otsort ../data/ABC_DE_WKey_out.dat ../data/ABC_DE_WKey_out.srt /apost +s(1001,8,c,a),om(1001,1,c,EQ,' ') f(fix,1371) core(60000)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Out-commenting and formating challenge
by monaLisa (Initiate) on Aug 11, 2003 at 10:26 UTC | |
by CombatSquirrel (Hermit) on Aug 11, 2003 at 13:19 UTC |