Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^4: Another newb question

by dasgar (Priest)
on Aug 09, 2012 at 03:54 UTC ( #986412=note: print w/replies, xml ) Need Help??

in reply to Re^3: Another newb question
in thread Another newb question

Well, I didn't actually run the code myself. Thought I'd share what I did in case it helps others.

I just cut and pasted the OP's code into Padre. It marked the last two lines of code as having issues. When I moved my mouse over the next to last line, Padre showed the same error message that the OP listed. However, that line looked correct to me.

Here's the key part. From past experience, I figured that if the line that is indicated as having issues by the Perl interpreter, then I needed to check the line(s) before it. In my code, the cause has usually been missing semi-colon or I had opened a closure (single quotes, double quotes, square bracket, etc.) and failed to close the closure. Those two kinds of mistakes usually has caused the Perl interpreter to complain about an incorrect line number in my code.

Anyways, when I started checking the other lines of code, that's when I noticed the missing semi-colon.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986412]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-03-24 23:47 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.