Re: Modify File in Place
- From: banker123 <bradbrockman@xxxxxxxxx>
- Date: 27 Apr 2007 10:34:57 -0700
local $^I = q{};
local @ARGV = ('E:/Remitrac/PDD/rmtd07110/Transmit/712531.dat');
while (<>) {
if(/^04/){
my $aux = (split/,/)[7];
$aux=~ s/^0+//;
print;
}
}
Can not do in place edit without backup error? Also I want this
script to edit the variable as defined above and leave all other
records in the file with the existing file name.
.
- Follow-Ups:
- Re: Modify File in Place
- From: Paul Lalli
- Re: Modify File in Place
- From: nobull67@xxxxxxxxx
- Re: Modify File in Place
- References:
- Modify File in Place
- From: banker123
- Re: Modify File in Place
- From: Paul Lalli
- Modify File in Place
- Prev by Date: perl and cygwin perl (unix style paths)
- Next by Date: Re: perl and cygwin perl (unix style paths)
- Previous by thread: Re: Modify File in Place
- Next by thread: Re: Modify File in Place
- Index(es):