Difference between revisions of "Perl"
From Teknologisk videncenter
m (→Development tools) |
|||
Line 2: | Line 2: | ||
[[Image:Perlcomic.jpg|thumb|800px|none| From http://0x2121.com/7/Lost_in_Translation]] | [[Image:Perlcomic.jpg|thumb|800px|none| From http://0x2121.com/7/Lost_in_Translation]] | ||
=Development tools= | =Development tools= | ||
+ | |||
*[[Perl/IDE|Integrated Development Environment]] - IDE - for Perl | *[[Perl/IDE|Integrated Development Environment]] - IDE - for Perl | ||
+ | ==ActiveState Perl and Padre== | ||
+ | #Download and install ActicePerl from [http://www.activestate.com/activeperl ActiceState] | ||
+ | #Open a command prompt and enter the command '''PPM''' | ||
+ | #Search for '''Padre''' (The Perl IDE - Integrated Development Environment) | ||
+ | #Install '''Padre''' | ||
+ | #Start Padre and start playing | ||
+ | |||
=Regular expressions= | =Regular expressions= | ||
*[[Regular Expression Perl]] Mainpage | *[[Regular Expression Perl]] Mainpage |
Revision as of 12:22, 23 May 2012
- wikiversity perl
Contents
Development tools
- Integrated Development Environment - IDE - for Perl
ActiveState Perl and Padre
- Download and install ActicePerl from ActiceState
- Open a command prompt and enter the command PPM
- Search for Padre (The Perl IDE - Integrated Development Environment)
- Install Padre
- Start Padre and start playing
Regular expressions
- Regular Expression Perl Mainpage
One liners
Search and replace in files
You could also use find and sed.
perl -pi -w -e 's/SEARCH/REPLACE/g;' *.php
- e means execute the following line of code.
- i means edit in-place
- w write warnings
- p loop