I've added backup_file_if_not_exist in FileUtils to easy config files backup 
before an action is performed on it.
If $file.oscarbak already exists, it is not overwritten. This prevent original 
backup to be overwritten upon multiple run of the backup routine.

usage:
use OSCAR::FileUtils

backup_file_if_not_exist($file) or carp "ERROR: Couldn't backup $file");

Regards,

Olivier.

--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to