On 7/22/07, cute <[EMAIL PROTECTED]> wrote:
Now i create a temp file to store changed content.
is there a simple way to change file content without creating temp
files?
ie:
while(<>)
{
tr/[a-e]/[1-5]/g
print TEMP, $_
}
You can use inplace-editing. Either use -i on the #! line or fiddle
with the $^i. However, this still uses a temp file (just in the
background).
Read more in
perldoc perlrun
perldoc perlvar
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/