Difference between revisions of "Perl in Windows"
From Bioinformatics Core Wiki
(Created page with "'''Perl''' programming language is distributed by default in most Linux distributions and also in all Mac OS X versions up to now. However, Windows users need to install it by th...") |
|||
Line 11: | Line 11: | ||
[[Image:Windows-command-prompt.png]] | [[Image:Windows-command-prompt.png]] | ||
− | === | + | === Windows Terminal commands === |
− | Commands are not the same as in UNIX (Linux & Mac OS X) systems | + | Commands are not exactly the same as in UNIX (Linux & Mac OS X) systems. |
− | + | At least, you should know: | |
* dir (list a directory content) | * dir (list a directory content) | ||
* cd (change current directory) | * cd (change current directory) | ||
[[Image:Windows-command-prompt-in.png]] | [[Image:Windows-command-prompt-in.png]] | ||
+ | |||
+ | As reference: | ||
+ | * [http://www.youtube.com/watch?v=jbvqCqb-HJk Command usage video] | ||
+ | * [http://ss64.com/nt/ Full list of Windows Commands] | ||
+ | |||
+ | === Running Perl === | ||
+ | |||
+ | Strawberry Perl adds the <code>perl</code> command to the Windows System and becomes accessible from the terminal. | ||
+ | Below you can see how a small 'Hello world' script, that we check its content by using <code>more</code> command, is launched. | ||
+ | |||
+ | <code>perl hello.pl</p> | ||
+ | |||
+ | [[Image:Windows-command-prompt-perl.png]] |
Revision as of 15:33, 2 April 2012
Perl programming language is distributed by default in most Linux distributions and also in all Mac OS X versions up to now. However, Windows users need to install it by themselves.
- You can download last Perl version from Windows here: Strawberry Perl
Below some screenshots and hints for starting to use Perl in Windows.
Find Windows terminal
The easiest way to access to terminal in Windows is by typing its name. Of course, you can decide to make a shortcut link for future uses.
Windows Terminal commands
Commands are not exactly the same as in UNIX (Linux & Mac OS X) systems.
At least, you should know:
- dir (list a directory content)
- cd (change current directory)
As reference:
Running Perl
Strawberry Perl adds the perl
command to the Windows System and becomes accessible from the terminal.
Below you can see how a small 'Hello world' script, that we check its content by using more
command, is launched.
perl hello.pl</p>