Home » questions » HELP, Does any one know about PERL scripting??

HELP, Does any one know about PERL scripting??

2006-08-12 02:59:56, Category: Programming & Design
if you do could you help me, how would i go about answering this question.: i have already written my script to prompt the user for their name, car make and year... now how do i do this??? Allow the script to accept data from any number of cars, asking after each if there is another car to prcess, and only when the user enters "no" doest the script end!! help?????

Answers

  1. AnalProgrammer

    On 2006-08-12 03:40:07


    That will be a loop. Something like do { ... "More Cars? "; $a = ; chop $a; } while ($a ne "No" && $a ne "no");
  2. kem

    On 2006-08-12 03:14:59


    visit http://www.w3schools.com for tutorials in perl
  3. timespiral

    On 2006-08-12 21:34:30


    The loop idea suggested by someone else looks good. You may want to store the data in the loop in an array like this: push @carlist, "$name $car $year\n"; That way you can print out the array later in the program. You could also use a hash.