On Tue, 2 Oct 2001 [EMAIL PROTECTED] wrote:
> While this is completely accurate for the sample data you provided it will
> substitute all 1's with 0's. Is there any chance of 1's in earlier fields,
> or an 11, 12, 21, 151, etc in the last field.
For that matter, if you want a consistent and mor
.au> <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
10/01/2001 cc:
At 12:23 PM 10/2/2001 +0930, Daniel Falkenberg wrote:
>List,
>
>I have comma seperated text file here with 3 entries per line...
>
>hello, world, 1
>
>Is it possible with perl to change that value of 1 to 0?
OK - I'm new at this too, but I am going to attempt to learn
something better by answeri
Daniel,
The following code will do.
undef $/;
open (INPUT, "test") || die "Can't open the input file";
$data=;
close INPUT;
open (OUTPUT, ">test") || die "Can't open the output file";
$data =~ s/1/0/g;
print OUTPUT $data;
close OUTPUT;
Cheers,
Gary
-Original Message-
From: Daniel Fa