Index of /
Name Last modified Size Description
Parent Directory 02-May-2008 01:24 -
TODO.txt 31-May-2006 21:55 1k
caller 31-May-2006 21:53 1k
defined 15-Jun-2006 11:24 1k
getlogin 31-May-2006 21:53 1k
grep 13-Apr-2007 16:10 1k
join 21-May-2006 03:24 1k
pm/ 28-Mar-2007 12:53 -
sample/ 28-Mar-2007 12:54 -
warn 23-May-2006 12:26 1k
WHAT:
A collection of Perl "one-liners".
USAGE:
perl -lwe file
"Camel-Case" filenames refer to modules, and are located in the "pm" directory. For example 'File::Spec::Functions.pm' usage is demonstrated in the one-liner './pm/File-Spec-Functions'. All other Perl functions are lowercase, or consistent with casing of their name, eg. 'join'.
MORE INFO:
perl -h
perldoc perl
perldoc -f function-name
Bash One-Liners: http://bash-v.chovy.com
Chovy's Blog: http://www.chovy.com
CONTRIBUTION:
Please put entire 'perl -le' command in a file, named after the perl function or module you are demonstrating.
example file: join
TESTING:
After testing with perl -lwe, please add the generated output and your environment info to the bottom of the file...
#You can automatically do this with:
#tail -n2 README.txt | sed 's/file/join/g' ...where 'join' is the file
#then cut-n-paste into command line...
#email the output of the following two commands to anthony<--at-->chovy.com
perl -l file 2>&1 | awk '{ print "#", $0 }' >> file && echo >> file
perl -v | grep 'This is perl' | awk '{ print "#", $0 }' >> file && echo >> file