Welcome To Snipplr


Everyone's Recent Perl Snippets Tagged perl



1 2 Next »
0 1186 posted 16 years ago by hacker
0 1201 posted 16 years ago by hacker
0 1081 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 1276 posted 16 years ago by myhd
1 1128 posted 16 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 1627 posted 16 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 1300 posted 16 years ago by paramah
0 1004 posted 16 years ago by archlight
Used for converting, compiling, and reversing tiff files from the Book Center's digital library.
0 1032 posted 17 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 1462 posted 17 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 1225 posted 17 years ago by amosshapira
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 1743 posted 17 years ago by darkphotn
Just a test
0 1158 posted 17 years ago by realgeeky
Don't use the -l switch if you don't want a new line.
1 1661 posted 17 years ago by 0xced
0 1087 posted 17 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 1262 posted 18 years ago by wolfie
Retrieves gif page images from RIFIAS on-line archive and combines them into a single pdf file
0 1055 posted 18 years ago by iblis
0 1521 posted 18 years ago by micmath
0 1379 posted 18 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 3266 posted 18 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 1395 posted 18 years ago by wolfie
Courtesy of Michael Mathews
0 1389 posted 19 years ago by wolfie
0 1333 posted 19 years ago by wolfie
0 1240 posted 19 years ago by whitetiger
1 2 Next »