Difference between revisions of "Perl"

From Teknologisk videncenter
Jump to: navigation, search
m (Development tools)
m (removed Category:Programming using HotCat)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
#Open a command prompt and enter the command '''PPM'''
 
#Open a command prompt and enter the command '''PPM'''
 
#Search for '''Padre''' (The Perl IDE - Integrated Development Environment)
 
#Search for '''Padre''' (The Perl IDE - Integrated Development Environment)
 +
##[http://padre.perlide.org/trac/wiki/DownloadActivePerl Padre install instructions]
 
#Install '''Padre'''
 
#Install '''Padre'''
 
#Start Padre and start playing
 
#Start Padre and start playing
Line 28: Line 29:
 
*p loop
 
*p loop
 
{{Source cli}}
 
{{Source cli}}
[[Category:Perl]][[Category:Programming]]
+
[[Category:Perl]]

Latest revision as of 08:55, 18 May 2015

Development tools

ActiveState Perl and Padre

  1. Download and install ActivePerl from ActiveState
  2. Open a command prompt and enter the command PPM
  3. Search for Padre (The Perl IDE - Integrated Development Environment)
    1. Padre install instructions
  4. Install Padre
  5. Start Padre and start playing
  6. Learning Perl
  7. http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf

Regular expressions

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