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:
assing places with perl

 



djemmers
New User

Feb 7, 2011, 2:55 AM

Post #1 of 2 (446 views)
assing places with perl Can't Post

Hi,

I want to make a page online that calculates places to sit and I heard that that would be easy with perl.
Unfortunatly I don't know perl.

I hope you can give me some pointers.

given:
a list of persons with each 0 to 3 persons they want to sit next to.
Everybody has to sit 2 by 2 unless there are an uneven amount of presons, then 1 sits alone

result:
a list (or multiple lists if available) of pairs of persons.
If there is no result possible for the given data, a list (or multiple) that comes close to the requirements.

any pointer will do

kind regards


rovf
Veteran

Feb 7, 2011, 5:14 AM

Post #2 of 2 (439 views)
Re: [djemmers] assing places with perl [In reply to] Can't Post

I don't think that your problem is easier with Perl than with the other "common" languages, such as PHP, Ruby or Python. Of course Perl is one possibility. However, if you are an absolute novice in Perl, and want to use this task for learning this language, I would break it up into smaller, independent units. At least you should separate

- how to implement a Web application with Perl, and
- how to implement your problem in Perl.

For the first part, get you web app running with a very simple program (maybe one where you just enter a number and get the double of the number in return).

For the second part, I suggest that you post your solution in Pseudo-code, and ask concrete questions of where you have problems mapping this Pseudo-code to Perl.

 
 


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

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