Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by boftx (Chaplain)
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.


Comment on Re: Simple perl Code runs on Ubuntu but gives errors on Cygwin
Download Code
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 scrutinizing the Monastery: (7)
As of 2014-09-19 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls