Welcome To Snipplr


Everyone's Recent Perl Snippets



Name the source duplicate_remove.perl and open Terminal.app in the same directory, and write: perl duplicate_remove.perl <file-to-be-convertet>
0 799 posted 15 years ago by gerhardsletten
Refer to http://msdn.microsoft.com/en-us/library/aa394512(VS.85).aspx
0 883 posted 15 years ago by vinocui
# 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 1082 posted 15 years ago by vinocui
Fix the background at the NSF
0 779 posted 15 years ago by chablatfriront
Won't work with Google code pages: they are javascript powered.
0 813 posted 15 years ago by iblis
0 788 posted 15 years ago by counter202
This is a simplified example for cut and paste use for command line parsing arguments with the use of an options hash
0 951 posted 15 years ago by kfaulk1
For database inserts must be made some site on "http://redirect_host:port/.../" with nice getip function: http://snipplr.com/view/10946/
0 911 posted 15 years ago by paramah
0 628 posted 15 years ago by archlight
1 734 posted 15 years ago by archlight
0 684 posted 15 years ago by archlight
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 912 posted 16 years ago by retry
0 704 posted 16 years ago by eszpee
Use this code to remove HTML from a string.
0 969 posted 16 years ago by meme
Suitable for backup scripts.
0 734 posted 16 years ago by eszpee
fill your username and password
0 843 posted 16 years ago by eszpee
Sometimes you can find error numbers in log files from various programs or even the kernel. This one-liner can be used to convert the error number into a meaningful message. "X" is the error number.
0 806 posted 16 years ago by amosshapira
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 799 posted 16 years ago by amosshapira
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 1236 posted 16 years ago by darkphotn
Just a test
0 767 posted 16 years ago by realgeeky
Don't use the -l switch if you don't want a new line.
1 1096 posted 16 years ago by 0xced