in reply to Re^2: why dosn't my code work?
in thread why dosn't my code work?

I think your and moritz's read (the bit about eq) is most likely what the OP meant by "not working". moritz and I were writing our posts about the same time. I missed the eq/== problem when I read the OP's code and didn't see moritz's post until after I posted mine.

I rather suspect I got distracted by the "just for fun" comment coupled with the lack of explanation of what didn't work. For a few seconds I actually thought the post was maybe even a well-meant spoof of some of our less articulate questions.

But then on second thought it felt trivializing, though I honestly wasn't sure who or what was being trivialized: the OP's own curiosity in learning Perl or our efforts at answers. One should never trivialize efforts at learning - even if that learning is only for pleasure. Some would argue that learning (and coding) for pleasure is in fact the purest form of learning and the *least* deserving of trivialization.

Best, beth

Replies are listed 'Best First'.
Re^4: why dosn't my code work?
by Zen (Deacon) on Apr 21, 2009 at 14:05 UTC
    The question isn't posed properly, and I would suspect that is the OP's issue in learning perl. The scientific method and critical thinking are both absolutely necessary; if you are merely a pinball bouncing about a field with no control, programming will be miserable.

    That being said, I don't think it's in the rules you can't post here if you're coding for fun. My first project before becoming employed in the field was when I was young- and you can guess, it was just for fun.
Re^4: why dosn't my code work?
by Anonymous Monk on Apr 22, 2009 at 04:04 UTC
    thanks, when i said fun i meant that's it's fun for now, but when i grow up i would like to get a job in computer porgramming or something simmilar.
      I think you will find a lot of eager support here, if you get yourself an account and make it known that you are a young person learning to program.

      Some of the benefits of having an account here include:

      • your own user page, where you can tell people a bit about yourself
      • access to the chatterbox where you can get immediate answers to your questions and get to know other people interested in programming and Perl.

      For more information on setting up an account, see

      Best, beth

      Note: I don't think there are sign-up restrictions for minors at PM. But if there are, you may want to ask a parent to open the account on your behalf. Also: PM user pages show up on Google - so never share identifying information on a user page (email/snail mail addresses, telephone numbers, your full name, and so on). Staying safe is very important.