Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Help Perl Program - I have compilation errors don't know where

by MidLifeXis (Monsignor)
on May 19, 2010 at 21:35 UTC ( #840805=note: print w/ replies, xml ) Need Help??


in reply to Help Perl Program - I have compilation errors don't know where

Just a couple of small points that may help:

  • 'While' ne 'while', and 'Next' ne 'next'
  • Try indenting your code to make it easier to read.

--MidLifeXis


Comment on Re: Help Perl Program - I have compilation errors don't know where
Select or Download Code
Re^2: Help Perl Program - I have compilation errors don't know where
by tangieb01 (Novice) on May 19, 2010 at 21:55 UTC

    Thanks...that was my problem I had "While" when I should of had "while". Appreciate it. It works now!

      If you are using Perl 5.10 maybe you want to rewrite your code to use a switch statement given/when for a better readability. It also helps you to extend the number of tests without adding more and more if statements. See: Switch-statements

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840805]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2015-07-06 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls