Help for beginner to create Perl script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vitalia
    New Member
    • Jan 2007
    • 1

    Help for beginner to create Perl script

    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(allo wed 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
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    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.

    Comment

    Working...