Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
any way to one line this?#!/Perl/bin/perl -w use IO::File; use strict; my $file = new IO::File; my $new_file = new IO::File; $file->open("<memgrp.dat"); $new_file->open(">>new_mem_grp.dat"); while(!$file->eof) { my $line = $file->getline; $line =~ s/}//g; $new_file->write($line,length($line)); } $new_file->close; $file->close;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Is this possible to make a one liner?
by ChemBoy (Priest) on Aug 01, 2003 at 20:48 UTC | |
•Re: Is this possible to make a one liner?
by merlyn (Sage) on Aug 01, 2003 at 20:44 UTC | |
| |
Re: Is this possible to make a one liner?
by mpd (Monk) on Aug 02, 2003 at 00:42 UTC | |
by Grygonos (Chaplain) on Aug 02, 2003 at 06:53 UTC | |
Re: Is this possible to make a one liner?
by waswas-fng (Curate) on Aug 01, 2003 at 20:50 UTC | |
by Grygonos (Chaplain) on Aug 02, 2003 at 06:51 UTC |