<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/perl</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 24 Jul 2008 02:36:38 GMT</pubDate>
<item>
<title>(Bash) Words with many doubled letters - zingo</title>
<link>http://snipplr.com/view/7056/words-with-many-doubled-letters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Jul 2008 19:28:07 GMT</pubDate>
<guid>http://snipplr.com/view/7056/words-with-many-doubled-letters/</guid>
</item>
<item>
<title>(Perl) Perl Reverse - debiasi</title>
<link>http://snipplr.com/view/6454/perl-reverse/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 May 2008 20:20:24 GMT</pubDate>
<guid>http://snipplr.com/view/6454/perl-reverse/</guid>
</item>
<item>
<title>(Perl) get google page rank - fris</title>
<link>http://snipplr.com/view/5153/get-google-page-rank/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 22 Feb 2008 06:52:53 GMT</pubDate>
<guid>http://snipplr.com/view/5153/get-google-page-rank/</guid>
</item>
<item>
<title>(Bash) Perl Search and Replace One-liner with xargs -0 - ches</title>
<link>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</link>
<description><![CDATA[ <p>\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.</p> ]]></description>
<pubDate>Fri, 15 Feb 2008 14:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</guid>
</item>
<item>
<title>(Perl) Generate XHTML on the command line with XML::API::XHTML - noah</title>
<link>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</link>
<description><![CDATA[ <p>Build a simple XHTML document, format it with Tidy and print the result to "temp.html."</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:21:23 GMT</pubDate>
<guid>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</guid>
</item>
<item>
<title>(Perl) Read file from STDIN and print random line. - jkramer</title>
<link>http://snipplr.com/view/4840/read-file-from-stdin-and-print-random-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 Jan 2008 03:36:56 GMT</pubDate>
<guid>http://snipplr.com/view/4840/read-file-from-stdin-and-print-random-line/</guid>
</item>
<item>
<title>(Perl) Count directory entries in given directories - amosshapira</title>
<link>http://snipplr.com/view/4542/count-directory-entries-in-given-directories/</link>
<description><![CDATA[ <p>In response to a very simplistic solution suggestion using Shell, here is a basic version of what I use. The advantage of the solution below is that it is supposed to be much faster on directories with many files (I regularly use its full-blown version on directories with tens and hundreds of thousands of files).</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 18:04:31 GMT</pubDate>
<guid>http://snipplr.com/view/4542/count-directory-entries-in-given-directories/</guid>
</item>
<item>
<title>(Perl) Crazy Perl Code - darkphotn</title>
<link>http://snipplr.com/view/4536/crazy-perl-code/</link>
<description><![CDATA[ <p>Yes, this is valid code.

Designed by myself, unless otherwise noted.</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 15:10:03 GMT</pubDate>
<guid>http://snipplr.com/view/4536/crazy-perl-code/</guid>
</item>
<item>
<title>(Perl) battery - pham</title>
<link>http://snipplr.com/view/4525/battery/</link>
<description><![CDATA[ <p>battery is a Perl script that concisely displays your battery status.</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 12:03:00 GMT</pubDate>
<guid>http://snipplr.com/view/4525/battery/</guid>
</item>
<item>
<title>(Bash) Batch rename files in directory - iblis</title>
<link>http://snipplr.com/view/4468/batch-rename-files-in-directory/</link>
<description><![CDATA[ <p>test with echo instead of mv
example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames</p> ]]></description>
<pubDate>Tue, 08 Jan 2008 17:28:53 GMT</pubDate>
<guid>http://snipplr.com/view/4468/batch-rename-files-in-directory/</guid>
</item>
<item>
<title>(Perl) Perl Hello World - realgeeky</title>
<link>http://snipplr.com/view/4437/perl-hello-world/</link>
<description><![CDATA[ <p>Just a test</p> ]]></description>
<pubDate>Mon, 31 Dec 2007 15:04:11 GMT</pubDate>
<guid>http://snipplr.com/view/4437/perl-hello-world/</guid>
</item>
<item>
<title>(Bash) Scrape Google from the command line - noah</title>
<link>http://snipplr.com/view/4299/scrape-google-from-the-command-line/</link>
<description><![CDATA[ <p>This code is POC only -- actually using it would violate Google's TOS, which forbids scraping.  It is published here for educational value only.

Hypothetically, the following command should return a list of the top 500 or so hits in Google for mysite.com.

The results will be prepended with digits, followed by a dot and some whitespace (Lynx adds these).</p> ]]></description>
<pubDate>Sun, 09 Dec 2007 21:16:58 GMT</pubDate>
<guid>http://snipplr.com/view/4299/scrape-google-from-the-command-line/</guid>
</item>
<item>
<title>(Perl) One liner perl extract content with regular expression - 0xced</title>
<link>http://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression/</link>
<description><![CDATA[ <p>Don't use the -l switch if you don't want a new line.</p> ]]></description>
<pubDate>Tue, 04 Dec 2007 06:33:22 GMT</pubDate>
<guid>http://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression/</guid>
</item>
<item>
<title>(Perl) Backup a flickr photoset - mandric</title>
<link>http://snipplr.com/view/4200/backup-a-flickr-photoset/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Nov 2007 12:20:39 GMT</pubDate>
<guid>http://snipplr.com/view/4200/backup-a-flickr-photoset/</guid>
</item>
<item>
<title>(Bash) check linked pages for Tidy validation errors, on the command line - noah</title>
<link>http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/</link>
<description><![CDATA[ <p>Given a list of HTML links (most likely a saved Google results page) check each linked page and report if Tidy complains that its doctype declaration is missing.

Besides DOCTYPE, other strings to search for include "discarding", "lacks value", "Error:"</p> ]]></description>
<pubDate>Tue, 13 Nov 2007 23:47:28 GMT</pubDate>
<guid>http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) Validate a list of Web pages with Tidy, on the command line - noah</title>
<link>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 13 Nov 2007 22:54:37 GMT</pubDate>
<guid>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files - noah</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
<item>
<title>(Bash) Download linked JPEGs from a Web page, on the command line - noah</title>
<link>http://snipplr.com/view/4063/download-linked-jpegs-from-a-web-page-on-the-command-line/</link>
<description><![CDATA[ <p>The following command will download all the files with a JPG extension that are linked from http://flickr.com.</p> ]]></description>
<pubDate>Fri, 02 Nov 2007 22:57:45 GMT</pubDate>
<guid>http://snipplr.com/view/4063/download-linked-jpegs-from-a-web-page-on-the-command-line/</guid>
</item>
<item>
<title>(Perl) Fix installing Perl modules on OS X - noah</title>
<link>http://snipplr.com/view/4009/fix-installing-perl-modules-on-os-x/</link>
<description><![CDATA[ <p>On Mac OS X, typing this command into CPAN will fix the make error when installing a Perl module. Found on the CPAN forums.

Here is the error I was getting:
-- NOT OK
Running make test
Can't run test witout successful make
Running make install
make had returned bad status, install seems impossible</p> ]]></description>
<pubDate>Fri, 26 Oct 2007 13:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/4009/fix-installing-perl-modules-on-os-x/</guid>
</item>
<item>
<title>(Perl) How to start CPAN on Windows/ActivePerl - noah</title>
<link>http://snipplr.com/view/3718/how-to-start-cpan-on-windowsactiveperl/</link>
<description><![CDATA[ <p>ActivePerl has a great package manager utility -- just type "ppm" at the prompt.

The problem is that ActivePerl's PPM points to ActivePerl's package repository, which doesn't contain every module listed on CPAN.

The solution is to invoke the cpan utility under windows!  Here's how.</p> ]]></description>
<pubDate>Mon, 17 Sep 2007 10:23:37 GMT</pubDate>
<guid>http://snipplr.com/view/3718/how-to-start-cpan-on-windowsactiveperl/</guid>
</item>
</channel>
</rss>