nbotension
asked on
PERL Script
Hi
I am new to this site and i am new to PERL programming also.
I am looking for a help from you.
I am having a requirement which goes like this
I have to write a perl script to read a text file(This text file is having a single column) -- But before that
1: First I have to check whether that file exist in the path given.If it exist then return 0 otherwise send an email to xyz@xyz.com stating that file not found in the given directory but return 0 right now also.
2: If that file is read permission then return 0 if not then send an email to xyz@xyz.com stating that file is not having read permission but return 0
3: Read the file and if it is having wild characters(*,(,),%,$,@,!,. ,{,},[,]," ,:,;) then send an email to xyz@xyz.com regarding the wild card presence (Along with the line numbers) in the file and return 0.
Means - after running this script - We have to always return a zero but if we find any errors which are mentioned above then we have to send an email.
Can somebody help ???
nbo
I am new to this site and i am new to PERL programming also.
I am looking for a help from you.
I am having a requirement which goes like this
I have to write a perl script to read a text file(This text file is having a single column) -- But before that
1: First I have to check whether that file exist in the path given.If it exist then return 0 otherwise send an email to xyz@xyz.com stating that file not found in the given directory but return 0 right now also.
2: If that file is read permission then return 0 if not then send an email to xyz@xyz.com stating that file is not having read permission but return 0
3: Read the file and if it is having wild characters(*,(,),%,$,@,!,.
Means - after running this script - We have to always return a zero but if we find any errors which are mentioned above then we have to send an email.
Can somebody help ???
nbo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nothing has happened on this question in over 2 months. It's time for cleanup!
My recommendation, which I will post in the Cleanup topic area, is to
accept answer by jmcg (or delete, forfeit points because it's homework).
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
jmcg
EE Cleanup Volunteer
My recommendation, which I will post in the Cleanup topic area, is to
accept answer by jmcg (or delete, forfeit points because it's homework).
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
jmcg
EE Cleanup Volunteer
Please clarify what the "requirement" is.