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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started