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.
In reply to Re: Simple perl Code runs on Ubuntu but gives errors on Cygwin
by boftx
in thread Simple perl Code runs on Ubuntu but gives errors on Cygwin
by Krishna05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |