Kevman has asked for the wisdom of the Perl Monks concerning the following question:
However, the file can contain#!/usr/local/bin/perl -w use strict; my $line; open (FH, "< ./kevtest.dat") || die "Couldn't open ./kevtest.dat: $!"; #Read in all the lines my @lines = <FH>; chomp @lines; for $line (@lines) { $line =~ s/\"//g; print STDERR "$line\n"; } #Close the file close FH || die "Couldn't ./fred.dat\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comma Delimited Problems
by arden (Curate) on Mar 09, 2004 at 14:55 UTC | |
by Kevman (Pilgrim) on Mar 09, 2004 at 15:01 UTC | |
|
Re: Comma Delimited Problems
by dragonchild (Archbishop) on Mar 09, 2004 at 14:57 UTC | |
|
Re: Comma Delimited Problems
by Tomte (Priest) on Mar 09, 2004 at 14:57 UTC | |
|
Re: Comma Delimited Problems
by Happy-the-monk (Canon) on Mar 09, 2004 at 15:10 UTC | |
|
Re: Comma Delimited Problems
by Abigail-II (Bishop) on Mar 09, 2004 at 15:25 UTC |