Home » questions » OMG any one know about PERL scripting HELP....?
OMG any one know about PERL scripting HELP....?
ok heres my question,
ok so i have written script to prompt the user for there Name, car model and year.... and then put in an ELSE IF statment to see weather it is 6 years older or not and prints out weather its car is 6 years old or older/younger.....
HERES the biggie now i have to :
use seprate ARRAYS fo the PROMPTS and the USER INPUTS, and allow the script to accept data from any number of cars asking after each if there is another car to process... only when the user enters "no" does the script end....
HELP HELP all i could think of was this but it doesnt work:
my $morecars
do {
print "Do you have anymore cars? \n";
chomp $morecars = ;
print "What make is the car? \n";
chomp $name = ;
print "what year was it made? \n";
chomp $year = ;
}
while ($morecars ne "No" && $morecars ne "no" && $morecars ne "NO");
exit;
PLEASE HELP ME.
OH and i for got to declare $name and $year and $make.... but in my script i put this and still didnt work.

Answers
kartoos5050
On 2006-08-14 23:47:32
edurles
On 2006-08-15 02:50:44
timespiral
On 2006-08-15 15:32:50