Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Simple perl Code runs on Ubuntu but gives errors on Cygwin

by boftx (Deacon)
on Oct 05, 2013 at 02:11 UTC ( #1056984=note: print w/replies, xml ) Need Help??


in reply to Simple perl Code runs on Ubuntu but gives errors on Cygwin

The (maybe not so) obvious error is that you are missing a semi-colon (";") after this line in the code:

print "Array Sample \n"

I don't see how it would have run on Ubuntu without it, so I can only surmise that you typed in by hand instead of doing a copy/paste on your Cygwin box and left it out by mistake.

On time, cheap, compliant with final specs. Pick two.

Replies are listed 'Best First'.
Re^2: Simple perl Code runs on Ubuntu but gives errors on Cygwin
by Krishna05 (Initiate) on Oct 05, 2013 at 02:43 UTC

    Hi! Thank you both for the reply! You were right. I didn't check a semi-colon was missing there. Was so dumb! Lesson learned.

      You're welcome! Rule of thumb, if you see a string of error messages that you just know don't make any sense, check the line before the first one listed to see if you left out a semi-colon. We all make this mistake, even after as many years as I have in this game. :)

      On time, cheap, compliant with final specs. Pick two.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056984]
help
Chatterbox?
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 2016-09-30 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (563 votes). Check out past polls.