Perl - Scripts

str_replace() - String Replace without RegExp
In perl one would replace string without putting much thought into it. You use use the code '$str =~ s/replace_this/with_this/g;' - this is a very efficient and easy way to replace a string. However this statement uses regular expression - which is much more processor intensive than a simple string replace. In many situations I have faced, I had to use a regular expression replace where a string replace would be better. That is because perl don't have a function to do a string replace.
Dir
Dir function can be used to list all the files in a given folder recursively.
Perl Source Compressor for JavaScript 1.00.A
JavaScript Source Compressor is a perl script that can be used to compress the Javascript source file to a much smaller file. The script will replaces large variable names with smaller, generic names and removes unwanted white spaces.
Subscribe to Feed