Question: Create a Perl program that creates a backup copy of the file (or files) specified by the user. The user must be able to specify

Create a Perl program that creates a backup copy of the file (or files) specified by the user.

The user must be able to specify the file name-- or names-- on the command line using shell expansions

If no files are specified on the command line, the program should either prompt for a filename or describe the problem and exit cleanly

Each specified file will be copied to a new filename that preserves the original filename and adds a unique suffix

The new filename must not previously exist (in other words, do not overwrite any older files)

The program must detect and report errors and should prevent unexpected consequences

The program must display the new name of each file that it copies

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!