Welcome To Snipplr


Everyone's Recent Perl Snippets Tagged perl



1 2 Next »
0 591 posted 14 years ago by hacker
0 576 posted 14 years ago by hacker
0 552 posted 14 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 560 posted 14 years ago by myhd
1 606 posted 14 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 855 posted 14 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 744 posted 15 years ago by paramah
0 462 posted 15 years ago by archlight
Used for converting, compiling, and reversing tiff files from the Book Center's digital library.
0 491 posted 15 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 679 posted 15 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 615 posted 16 years ago by amosshapira
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 1021 posted 16 years ago by darkphotn
Just a test
0 595 posted 16 years ago by realgeeky
Don't use the -l switch if you don't want a new line.
1 859 posted 16 years ago by 0xced
0 521 posted 16 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 632 posted 16 years ago by wolfie
Retrieves gif page images from RIFIAS on-line archive and combines them into a single pdf file
0 508 posted 16 years ago by iblis
0 819 posted 16 years ago by micmath
0 733 posted 16 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 2134 posted 16 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 646 posted 17 years ago by wolfie
Courtesy of Michael Mathews
0 712 posted 17 years ago by wolfie
0 659 posted 17 years ago by wolfie
0 598 posted 17 years ago by whitetiger
1 2 Next »