There are probably many people here at the Monastery more qualified to argue the PHP vs. Perl thing. But, I guess I can give some advice on the rest.

Given your situation, I would probably complete the current project in PHP. Next, I would try to do the same exercise in Perl on a separate site. Expect the second attempt to be harder in some ways (you are learning a language at the same time) and easier in others (you aren't trying to design a solution to a new problem).

Depending on the kind of game you are writing, CPAN may be able to supply some tools that you can use. (I used Games::Maze to solve part of a problem for me a few years ago.)

One downside of this approach is that your Perl program may be more PHPish than it should be. But you can correct your accent later as you gain more experience.

G. Wade

In reply to Re^5: From PHP to Perl - Should I, and how? by gwadej
in thread From PHP to Perl - Should I, and how? by salazar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.