tekniko has asked for the wisdom of the Perl Monks concerning the following question:
#!/bin/perl $infile = "/tmp/mail.aliases"; $outfile = "/tmp/mail.new"; open ( INFILE, $infile ) || die "Can't open $infile: $!\n"; open ( OFILE, ">$outfile" ) || die "Can't open $outfile: $!\n"; while ( <INFILE> ) { s/]//; # attribute 24 type string s/[[]//; s/IDENT://; s/<//; s/>...//; s/`...`//; print OFILE "$_"; } # end while ( <INFILE> )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling spools
by Fastolfe (Vicar) on Jan 15, 2001 at 19:33 UTC | |
by tekniko (Deacon) on Jan 15, 2001 at 20:02 UTC | |
|
Re: Handling spools
by a (Friar) on Jan 16, 2001 at 10:13 UTC |