hello wise monks.. my problem today is a simple one at that but I am unfortunately just beginning to learn the way of perl. My problem is that I have been asked to write a script that checks for command line switches such as "script1.pl -l logfile.txt -u useraccounts.txt -r report.txt" I don't care what order they are in but as long as it checks logfile and useraccounts exist and reports an error to the screen like "usage: wrong switch used! -c doesnt exist" and stuff like "logfile not found". How would I accomplish this? oh wise perl monks please hear my call!
also.. I dont want to use geoopt::long module! just using good ol strict and warnings!!
ya no this isn't a home work assignment. This is a task from work which has been given to me but unfortunately they will not install any modules, none what soever and will not give me access to anything except to write this script.. ultimatly what it does is parses a logfile and useraccounts file and searches for certain strings such as times and usernames.
I have never done perl before but yet I am being told to do this! anything would be of help! anything..