Welcome To Snipplr


Everyone's Recent Perl Snippets



This is a script that simply prints the current month. I produced this a couple years ago and use it as a reference for using the localtime() function.
0 2326 posted 15 years ago by numberwhun
This is a handy little bit that will show you all of the installed modules on the system.
0 1301 posted 15 years ago by numberwhun
Redirects to specified page ignoring specified ip address and folders.
0 1874 posted 15 years ago by vagrantradio
Just run in your consol window as ./tocase (or whatever you call the file). Be sure to give it proper permission first (chmod 755 tocase) :]
0 1154 posted 15 years ago by davidmoreen
0 1686 posted 15 years ago by pflangan
send SMS to any mobile phone number (or a list) worldwide.
0 1615 posted 15 years ago by smsmatrix
Need to "unsort" / randomize / scramble LINES in a text? Copy source -> then TextMate Bundle Editor -> New Command -> select all in Command(s) -> paste source -> Input: Selected Text or Document -> Output: Replace Selected Text ...
0 1674 posted 15 years ago by heinz1959
1 1806 posted 16 years ago by jepedo
0 1594 posted 16 years ago by joe-bbb
Useful perl snippet to convert csv docs to xml from Ankh on the freenode #xml irc channel
0 1491 posted 16 years ago by bionic
This replaces all .pngx files with .png
0 1722 posted 16 years ago by joe-bbb
I modified this excellent Perl script, created by John Watson (http://www.watson-net.com) to be used with TextMate to reformat your HTML for easier readability. Here's how to use it: 1. In TextMate > Bundles > Bundle Editor > Show Bundle Editor...
1 1804 posted 16 years ago by rareyman
Can be used on any machine with PERL installed. Just execute this script in the directory and it will remove .svn folders recursively
0 1916 posted 16 years ago by TEHEK
This report looks at the most recent Tweet from each person in your friends list and keeps track of which client they're using. It then prints out a report showing how many people use each client, with the most popular at the bottom. Code is writt...
0 1419 posted 16 years ago by prwood
Scans a file for a series of floating point numbers separated by spaces.
0 1721 posted 16 years ago by vorp
I recently had to remove some files from a svn repo. should work pretty much out of the box, just fill in blatantly exampleish text and read the comments
0 1692 posted 16 years ago by spreelanka
source for perl file that is step 2
1 1615 posted 16 years ago by rowntreerob
This is inspired by this http://www.cgi101.com/book/ch5/text.html so I'm using a similar example. In PHP you can combine a set of checkboxes into an array using square brackets like this: <form> <input> Red<br> <input> Green<br>...
1 2388 posted 16 years ago by ptepper
Read in a remote XML file, change the pubDate date format, and output to specific local file.
0 1584 posted 16 years ago by karlhorky
on cygwin, run 'CPAN' to manage module installs
0 1509 posted 16 years ago by rowntreerob
0 1522 posted 16 years ago by hacker
0 1575 posted 16 years ago by hacker
Perl hash sets are hashes used to represent sets. Their keys are the set elements, and the corresponding values are just 1. For keys that are not set elements, the hash will return undef, equivalent to false. Adding a whole array to a hash set i...
0 1861 posted 16 years ago by deepsoul
0 1408 posted 16 years ago by joe-bbb
This example demonstrates a way to control Adobe InDesign from Perl. Tested on MacOS X 10.5.7 and INDD.
0 1674 posted 16 years ago by myhd