Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: Another newb question

by dasgar (Curate)
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.

Comment on Re^4: Another newb question

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-11-25 01:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (667 votes), past polls