Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$file = '\\\daaecrmpd\d$\dba\freespacemonitor\directory.txt'; open(FILE, "<$file") or die "can't open $file: $!"; while (<FILE>){ s/total_bytes/""/ig; } close FILE;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Substitution in a file
by swiftone (Curate) on Jan 11, 2001 at 21:44 UTC | |
Re: Substitution in a file
by fundflow (Chaplain) on Jan 11, 2001 at 22:04 UTC | |
Re: Substitution in a file
by OeufMayo (Curate) on Jan 11, 2001 at 22:09 UTC | |
Re: Substitution in a file
by davorg (Chancellor) on Jan 11, 2001 at 22:15 UTC | |
Re: Substitution in a file
by davorg (Chancellor) on Jan 11, 2001 at 21:45 UTC |