[Za-pm] Writing a search replace script

Spike spikeh at mweb.co.za
Wed Feb 25 23:23:49 CST 2004


Why use move - couldn't you just use rename ("/tmp/balsa.tmp", $file )?


At 2004/02/26 06:12 AM, Nico Coetzee wrote:
># but first make a backup copy:
>     43          my $bakfile= $file . ".bak";
>     44          rename( $file, $bakfile );
>     45          move( "/tmp/balsa.tmp", $file );
>     46          if( -e $file ) {
>     47


Spike Hodge

UNIX Programmer
M-Web Technology
021 596 8496
083 294 9593
Fax 0866721733


Click here and make M-Web your homepage
http://homepage.mweb.co.za  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/za-pm/attachments/20040226/0066a2f1/attachment.htm


More information about the Za-pm mailing list