Welcome To Snipplr


Everyone's Recent Snippets Tagged perl



This replaces all .pngx files with .png
0 888 posted 14 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 983 posted 14 years ago by rareyman
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 796 posted 15 years ago by spreelanka
source for perl file that is step 2
1 816 posted 15 years ago by rowntreerob
export bookmarks.html file, extract links from that file to a list , using the list as INPUT to linkchecker that reports dead links
0 878 posted 15 years ago by rowntreerob
Find the most recently modified file in a directory tree and output its name and modification time. Use index 8 or 10 instead of 9 for access and inode modification time, respectively (see perlfunc manual page - function stat). This is great for...
0 819 posted 15 years ago by deepsoul
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 1063 posted 15 years ago by ptepper
on cygwin, run 'CPAN' to manage module installs
0 732 posted 15 years ago by rowntreerob
0 778 posted 15 years ago by hacker
0 746 posted 15 years ago by hacker
0 718 posted 15 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 744 posted 15 years ago by myhd
1 776 posted 15 years ago by cshaiku
# useful links: # (WMI space definition) http://msdn.microsoft.com/en-us/library/aa394084(VS.85).aspx # (OLE usage on CPAN) http://cpan.uwinnipeg.ca/htdocs/Win32-OLE/Win32/OLE.html#Object_methods_and_properties
1 1085 posted 15 years ago by vinocui
Find out which version of Perl is installed on the server.
0 585 posted 15 years ago by bhubbard
For database inserts must be made some site on "http://redirect_host:port/.../" with nice getip function: http://snipplr.com/view/10946/
0 913 posted 15 years ago by paramah
0 632 posted 15 years ago by archlight
Replace all the occurrences of a string with a replacement in the supplied files.
2 977 posted 15 years ago by sanjivarunsahayamhotmailcom
Used for converting, compiling, and reversing tiff files from the Book Center's digital library.
0 636 posted 16 years ago by rubinsta
This Perl one-liner will remove all newline characters from a text file, replacing them with a space. In the source, all newline characters in the file gear_list.xml are replaced with spaces, and the original file is saved as gear_list.xml.bak
0 914 posted 16 years ago by retry
0 898 posted 16 years ago by zingo
\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.
1 1158 posted 16 years ago by ches
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 versi...
0 800 posted 16 years ago by amosshapira
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 1240 posted 16 years ago by darkphotn