Keep It Simple, Stupid | |
PerlMonks |
Re: Copying a file to a temporary fileby tachyon (Chancellor) |
on Jun 15, 2004 at 13:15 UTC ( [id://366872]=note: print w/replies, xml ) | Need Help?? |
For inplace editing I suggest you look at -i switch or Super Search for 'inplace edit'
As for creating a temporary file. There is lots of that on Super Search too, but once you have a temp file handle you can just use open and <> or read and print...... You will find the guts of File::Temp in a 15 line function here Re: Avoiding race condition with sysopen cheers tachyon
In Section
Seekers of Perl Wisdom
|
|