nadadogg has asked for the wisdom of the Perl Monks concerning the following question:
my data looks like this originallysub fixspace{ $rem ="|"; $rep = " "; open FILE, "<$file"; open OUTP, ">c:\\joshperl\\deptemp.txt"; while (<FILE>) { s/$rem/$rep/go; print OUTP; } close FILE; close OUTP; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: replacing pipe "|"
by SarahM (Monk) on Mar 26, 2003 at 20:38 UTC | |
by nadadogg (Acolyte) on Mar 26, 2003 at 21:25 UTC | |
Re: replacing pipe "|"
by BrowserUk (Patriarch) on Mar 26, 2003 at 20:38 UTC | |
Re: replacing pipe "|"
by Util (Priest) on Mar 26, 2003 at 22:22 UTC | |
by nadadogg (Acolyte) on Mar 27, 2003 at 21:36 UTC | |
Re: replacing pipe "|"
by pfaut (Priest) on Mar 26, 2003 at 20:41 UTC | |
Re: replacing pipe "|"
by thpfft (Chaplain) on Mar 26, 2003 at 20:45 UTC | |
by tachyon (Chancellor) on Mar 26, 2003 at 22:04 UTC | |
by Nkuvu (Priest) on Mar 26, 2003 at 21:03 UTC | |
by thpfft (Chaplain) on Mar 26, 2003 at 21:06 UTC | |
by BrowserUk (Patriarch) on Mar 26, 2003 at 22:18 UTC | |
by Nkuvu (Priest) on Mar 26, 2003 at 21:23 UTC |