Question by Kuan Hoong: How to run perl script in cygwin?
I am a newbie in perl. I would like to know what is the command to run a perl script in cygwin.
Best answer:
Answer by littlebhishma
You can run the perl script by the following ways:
1. on command prompt type /usr/bin/perl your_script_name and press enter
2. Or you can add the following line to the top of the perl script:
#!/usr/bin/perl
Once you add that line you execute the script by typing fully qualified script_name and press enter. To run a script in the current directory should ./script_name.extension (Unix will not look for the script in the current directory by default).
Add your own answer in the comments!












