CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Help with Home Study Course

 



the1stefan
New User

Dec 17, 2006, 8:08 AM

Post #1 of 11 (2009 views)
Help with Home Study Course Can't Post

I wonder if anyone can help me. I am doing a Web Design home study course and I am stuck on the Perl Section. When I was just learning the theory about the Perl Language I was fine but I can not put this knowledge into practice. I have to create a Perl program to acquire customer information, the program must ask for the following: Customer Reference Number (4 Digits Only), Title (Between 1 and 4 Alpherabtic Characters, the allowed list is Dr, Lady, Lord, Miss, Mr, Mrs, Ms, Sir), Surname (Between 1 and 20 Alpherabtic Characters), Forname (Between 1 and 20 Alpherabic Characters), Sex (1 Character M or F upper or lower case), Date of Birth (in format DD/MM/YYYY), Vision Measurement (1 or 2 digits between 1 and 99). All the inputs have to be verified, if any verification fails then a suitable error message must be displayed and another prompt to re-enter the same item again. Then lastly the program needs to ask have you another customer details to enter, if yes to start again or exit if no.


stupeas
Novice

Dec 17, 2006, 11:04 AM

Post #2 of 11 (2007 views)
Re: [the1stefan] Help with Home Study Course [In reply to] Can't Post

Ive just done EXACTLY the same assignment for SkillsTrain. It took me 2 FULL days.

What is it you want to know? I presume you dont want someone to write the whole script for you (what will you learn by that???).

I will help if you post the code you already have or ask specific questions.

WinkStu


KevinR
Veteran


Dec 17, 2006, 11:26 AM

Post #3 of 11 (2003 views)
Re: [stupeas] Help with Home Study Course [In reply to] Can't Post


In Reply To
Ive just done EXACTLY the same assignment for SkillsTrain. It took me 2 FULL days.

What is it you want to know? I presume you dont want someone to write the whole script for you (what will you learn by that???).

I will help if you post the code you already have or ask specific questions.

WinkStu


hehehe.... learning the drill very quickly mate Cool
-------------------------------------------------


stupeas
Novice

Dec 17, 2006, 11:32 AM

Post #4 of 11 (2001 views)
Re: [KevinR] Help with Home Study Course [In reply to] Can't Post


In Reply To

In Reply To
Ive just done EXACTLY the same assignment for SkillsTrain. It took me 2 FULL days.

What is it you want to know? I presume you dont want someone to write the whole script for you (what will you learn by that???).

I will help if you post the code you already have or ask specific questions.

WinkStu


hehehe.... learning the drill very quickly mate Cool





Im calm....Im calm..........!!


KevinR
Veteran


Dec 17, 2006, 11:40 AM

Post #5 of 11 (1999 views)
Re: [stupeas] Help with Home Study Course [In reply to] Can't Post

hehehe...


Code
if(/not calm/) { 
go_outside('relax');
}



Smile
-------------------------------------------------


stupeas
Novice

Dec 17, 2006, 11:49 AM

Post #6 of 11 (1997 views)
Re: [KevinR] Help with Home Study Course [In reply to] Can't Post

Damn, That looks like the regex i should have used on said assignment!!!


KevinR
Veteran


Dec 17, 2006, 11:49 AM

Post #7 of 11 (1997 views)
Re: [stupeas] Help with Home Study Course [In reply to] Can't Post

You're cheating..... PMing him with the answer... Wink
-------------------------------------------------


KevinR
Veteran


Dec 17, 2006, 11:59 AM

Post #8 of 11 (1995 views)
Re: [stupeas] Help with Home Study Course [In reply to] Can't Post


In Reply To
Damn, That looks like the regex i should have used on said assignment!!!


i prefer:


Code
use Drinks; 
my $drinks = Drinks->new;
my $margarita = $drinks->ingredients({tequila=>'2 shots',triple_sec=>'2 parts',lime_juice=>'3 parts'});
$margatita = $drinks->salt('yes');
$margarita = $drinks->down_the_hatch('make_a_toast');
$margarita = $drinks->another_round('keep_em_coming');

-------------------------------------------------


stupeas
Novice

Dec 17, 2006, 12:03 PM

Post #9 of 11 (1994 views)
Re: [KevinR] Help with Home Study Course [In reply to] Can't Post

I hope you are joking!! do you honestly think I would give him the answer after having a brain hemerage myself trying to complete it. I have however told him what he needs to revise in the course manual so that he can have a better chance at understanding the question.

The best advise to anyone doing an assignment must be:

1.Get a pen and some paper.

2.Figure out what the question is asking by breaking it down into tasks.

3.write the tasks down

4.figure out what kind of syntax is needed (or general area)

5.revise these areas.

6.read the question again and apply Knowkedge.


KevinR
Veteran


Dec 17, 2006, 12:07 PM

Post #10 of 11 (1992 views)
Re: [stupeas] Help with Home Study Course [In reply to] Can't Post

or just ask for the answer......

http://www.perlguru.com/gforum.cgi?post=26382;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread

Tongue

catch ya later ! Cool
-------------------------------------------------


(This post was edited by KevinR on Dec 17, 2006, 12:07 PM)


stupeas
Novice

Dec 17, 2006, 12:10 PM

Post #11 of 11 (1990 views)
Re: [KevinR] Help with Home Study Course [In reply to] Can't Post


In Reply To

In Reply To
Damn, That looks like the regex i should have used on said assignment!!!


i prefer:


Code
 use Drinks;  
my $drinks = Drinks->new;
my $margarita = $drinks->ingredients({tequila=>'2 shots',triple_sec=>'2 parts',lime_juice=>'3 parts'});
$margatita = $drinks->salt('yes');
$margarita = $drinks->down_the_hatch('make_a_toast');
$margarita = $drinks->another_round('keep_em_coming');




See!!! you can do OO when you reeeeealy need to Tongue

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives