Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by MidLifeXis (Prior)
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 wandering the Monastery: (12)
As of 2014-08-27 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (248 votes), past polls