Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Replies are listed 'Best First'.
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?
[Corion]: Hi marto!
[marto]: hey Corion, good weekend?
[Corion]: marto: Yeah, even though I didn't write any code :)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-08-21 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (319 votes). Check out past polls.

    Notices?