I have written a PERL script which asks user to key in date and then it
does some calculations in that date and stores it in different
The objective of the script is to make changes at certain places in a
UNIX file whenever you run this file.Basically it replaces the existing
dates in the UNIX file and substitute it with the new calculated dates.
Now the problem is how do i input the dates from the user?
Because right now i have just defined a simple variable $input to get
so if user keys in 20010731 and if i add 7 to it it becomes 20010738
instead of going into the month of August.
Is there a way to define a date variable in PERL.I am a beginner in PERL
so dont know how to do it.
Can somebody please help me out?