Hello, Can I modify the contents of a file, without creating a new one?
Now, the method that I modify the contents of a file is:
open( READHANDLE , "sourceFile" );
open( WRITEHANDLE, ">destiFile" );
foreach my $line (<READHANDLE>) {
if it accords with my rules {
modify $line;
print(WRITEHANDLE $line);
}
}
close(...);
Is there a method that I could not create a new file to store the modified
informations?
Thanks,
Zen
