Difference between revisions of "Perl"
From Christoph's Personal Wiki
(→Modules) |
|||
Line 1: | Line 1: | ||
'''Perl''' is a dynamic programming language. | '''Perl''' is a dynamic programming language. | ||
− | == Modules == | + | ==Regex== |
+ | see: [[Regular expression]] | ||
+ | |||
+ | Search and replace all "foo" with "bar" in <code>filename</code>: | ||
+ | perl -i -pe 's/foo/bar/gi' filename | ||
+ | |||
+ | ==Modules== | ||
Search and download: http://search.cpan.org/ | Search and download: http://search.cpan.org/ | ||
− | === Installing === | + | ===Installing=== |
perl -MCPAN -e shell | perl -MCPAN -e shell | ||
#Or, | #Or, | ||
perl -MCPAN -e "install Example::Module" | perl -MCPAN -e "install Example::Module" | ||
− | === My favourites === | + | ===My favourites=== |
− | * [http://dbi.perl.org/ DBI] | + | *[http://dbi.perl.org/ DBI] |
− | * [http://search.cpan.org/~petdance/WWW-Mechanize-1.20/lib/WWW/Mechanize.pm WWW::Mechanize] (see: [http://www.perl.com/pub/a/2003/01/22/mechanize.html]) | + | *[http://search.cpan.org/~petdance/WWW-Mechanize-1.20/lib/WWW/Mechanize.pm WWW::Mechanize] (see: [http://www.perl.com/pub/a/2003/01/22/mechanize.html]) |
− | * [http://search.cpan.org/~gwilliams/WWW-Search-PubMed-1.002/lib/WWW/Search/PubMed.pm WWW::Search::PubMed] (see: [http://eutils.ncbi.nlm.nih.gov/entrez/query/static/esearch_help.html]) | + | *[http://search.cpan.org/~gwilliams/WWW-Search-PubMed-1.002/lib/WWW/Search/PubMed.pm WWW::Search::PubMed] (see: [http://eutils.ncbi.nlm.nih.gov/entrez/query/static/esearch_help.html]) |
− | * [http://search.cpan.org/~muenalan/WWW-Search-NCBI-PubMed-0.01/lib/WWW/Search/NCBI/PubMed.pm WWW::Search::NCBI::PubMed] | + | *[http://search.cpan.org/~muenalan/WWW-Search-NCBI-PubMed-0.01/lib/WWW/Search/NCBI/PubMed.pm WWW::Search::NCBI::PubMed] |
− | * [http://search.cpan.org/~spectrum/MediaWiki-1.08/lib/MediaWiki.pm MediaWiki] | + | *[http://search.cpan.org/~spectrum/MediaWiki-1.08/lib/MediaWiki.pm MediaWiki] |
− | * [[mvs]] | + | *[[mvs]] |
− | == BioPerl == | + | ==BioPerl== |
See: http://www.bioperl.org/wiki/Main_Page | See: http://www.bioperl.org/wiki/Main_Page | ||
− | == External links == | + | ==External links== |
− | * [http://perldoc.perl.org/ Perl version 5.8.8 documentation] | + | *[http://perldoc.perl.org/ Perl version 5.8.8 documentation] |
− | * [http://perldoc.perl.org/perlre.html Perl regular expressions] | + | *[http://perldoc.perl.org/perlre.html Perl regular expressions] |
− | * [[wikipedia:Perl]] | + | *[[wikipedia:Perl]] |
{{stub}} | {{stub}} | ||
[[Category:Scripting languages]] | [[Category:Scripting languages]] |
Revision as of 07:54, 11 March 2007
Perl is a dynamic programming language.
Regex
see: Regular expression
Search and replace all "foo" with "bar" in filename
:
perl -i -pe 's/foo/bar/gi' filename
Modules
Search and download: http://search.cpan.org/
Installing
perl -MCPAN -e shell #Or, perl -MCPAN -e "install Example::Module"
My favourites
- DBI
- WWW::Mechanize (see: [1])
- WWW::Search::PubMed (see: [2])
- WWW::Search::NCBI::PubMed
- MediaWiki
- mvs
BioPerl
See: http://www.bioperl.org/wiki/Main_Page
External links
This article is curently a "stub". This means it is an incomplete article needing further elaboration.
I always welcome suggestions, comments, and criticism. If you have something to contribute to this site, please follow this link: Contributing Information. Thank you!