Welcome To Snipplr


Everyone's Recent Perl Snippets Tagged perl



1 2 Next »
0 1706 posted 16 years ago by hacker
0 1782 posted 16 years ago by hacker
0 1590 posted 17 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 1894 posted 17 years ago by myhd
1 1641 posted 17 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 2276 posted 17 years ago by vinocui
For database inserts must be made some site on "http://redirect_host:port/.../" with nice getip function: http://snipplr.com/view/10946/
0 1802 posted 17 years ago by paramah
0 1472 posted 17 years ago by archlight
Used for converting, compiling, and reversing tiff files from the Book Center's digital library.
0 1559 posted 18 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 2110 posted 18 years ago by retry
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 1818 posted 18 years ago by amosshapira
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 2332 posted 18 years ago by darkphotn
Just a test
0 1683 posted 18 years ago by realgeeky
Don't use the -l switch if you don't want a new line.
1 2273 posted 18 years ago by 0xced
0 1637 posted 18 years ago by mandric
This shows how to use a module that normally needs a 'qw' attachment to the use statement (hint: its the = sign). You can add others by using comma separated values.
0 1874 posted 19 years ago by wolfie
Retrieves gif page images from RIFIAS on-line archive and combines them into a single pdf file
0 1613 posted 19 years ago by iblis
0 2215 posted 19 years ago by micmath
0 1923 posted 19 years ago by micmath
This code will validate not only the four octets contain between 1 and 3 numbers each, but also that the number they contain is between 0 and 255. In all, there are 3 different regex's that I tried and all seem to work fine. The three regex's a...
0 4180 posted 19 years ago by numberwhun
Use this to display a file properly if you are reading it from another location and wish to direct it to the user's browser
0 2158 posted 19 years ago by wolfie
Courtesy of Michael Mathews
0 2020 posted 19 years ago by wolfie
0 1921 posted 19 years ago by wolfie
0 1818 posted 19 years ago by whitetiger
1 2 Next »