Connecting Tech Pros Worldwide Help | Site Map

Help for beginner to create Perl script

Newbie
 
Join Date: Jan 2007
Posts: 1
#1: Jan 21 '07
Hello everyone, I really need help to create this syntax.
I am a beginner. I was able to write just simple code but I couldn't restrict the number of digits and letters.

What I need is:

All inputs should be verified. Any input which fails the verification should result in a suitable error message.

Customer Reference – 4 digits only
Title- between1 and 4 alphabetic characters(allowed Dr, Lady, Lord, Miss, Mr,Mrs,Ms,Sir.
Surname- between 1 and 20 char.
Forename- between 1 and 20 char.
Sex- 1 char (M or F upper or lower case)
Date of birth in the format DD/MM/YYYY

If anyone knows how to limit the number of digits it would be very helpful.
Thanks for your time wise people,
Vitalia
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Jan 21 '07

re: Help for beginner to create Perl script


I see this exact same question on various perl forums because it is some type of class/school work. Post whatever code you have so far to recieve some help with your class/school work.
Reply


Similar Perl bytes