in reply to read and write to same file
see Tie::File#! /usr/bin/perl use strict; use warnings; use Tie::File; my $file = '/path/to/file.ext'; tie my @array,'Tie::File',$file or die $!; $_ =~ s/,$/ / for(@array); untie @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: read and write to same file
by xdg (Monsignor) on Aug 19, 2005 at 10:53 UTC | |
|
Re^2: read and write to same file
by Anonymous Monk on Aug 19, 2005 at 10:52 UTC |