Difference between revisions of "Perl"
From Teknologisk videncenter
m (→One liners) |
m (removed Category:Programming using HotCat) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
*[http://en.wikiversity.org/wiki/Topic:Perl wikiversity] perl | *[http://en.wikiversity.org/wiki/Topic:Perl wikiversity] perl | ||
[[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 | ||
+ | *Perltidy - Perl beautifier | ||
+ | ==ActiveState Perl and Padre== | ||
+ | #Download and install ActivePerl from [http://www.activestate.com/activeperl ActiveState] | ||
+ | #Open a command prompt and enter the command '''PPM''' | ||
+ | #Search for '''Padre''' (The Perl IDE - Integrated Development Environment) | ||
+ | ##[http://padre.perlide.org/trac/wiki/DownloadActivePerl Padre install instructions] | ||
+ | #Install '''Padre''' | ||
+ | #Start Padre and start playing | ||
+ | #[[/Learning Perl|Learning Perl]] | ||
+ | #http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf | ||
+ | |||
=Regular expressions= | =Regular expressions= | ||
*[[Regular Expression Perl]] Mainpage | *[[Regular Expression Perl]] Mainpage | ||
Line 18: | Line 29: | ||
*p loop | *p loop | ||
{{Source cli}} | {{Source cli}} | ||
− | [[Category:Perl | + | [[Category:Perl]] |
Latest revision as of 07:55, 18 May 2015
- wikiversity perl
Contents
Development tools
- Integrated Development Environment - IDE - for Perl
- Perltidy - Perl beautifier
ActiveState Perl and Padre
- Download and install ActivePerl from ActiveState
- 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
- Learning Perl
- http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
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