knewter has asked for the wisdom of the Perl Monks concerning the following question:
Anyone know how to do what I'm trying to do and succeed? :)#!/usr/bin/perl use strict; my $a; my $content; open E, "<C:/auburn_courses_replace.txt" or die "Unable to open file $ +!"; undef $/; $a = <E>; $/ = "\n"; close E; open F, "<C:/auburn_courses.txt" or die "Unable to open file $!"; undef $/; $content = <F>; $/ = "\n"; close F; open G, ">>C:/auburn_courses2.txt" or die "Unable to open file $!"; #print $content; #print $a; $content =~ s/$a//g; print G $content; close G;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running out of memory...
by BrowserUk (Patriarch) on Jan 29, 2005 at 19:20 UTC | |
|
Re: Running out of memory...
by vek (Prior) on Jan 29, 2005 at 19:59 UTC | |
by knewter (Novice) on Jan 29, 2005 at 20:18 UTC | |
by BrowserUk (Patriarch) on Jan 29, 2005 at 21:11 UTC | |
by knewter (Novice) on Mar 03, 2005 at 20:22 UTC |