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;
In reply to Re: read and write to same file
by reneeb
in thread read and write to same file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |