Monthly Archives: May 2008

Perl One Line Programs

# run program, but with warnings perl -w my_file # run program under debugger perl -d my_file # just check syntax, with warnings perl -wc my_file # useful at end of “find foo -print” perl -nle unlink # simplest one-liner program perl -e ‘print “hello world!n”‘ # add first and penultimate columns perl -lane ‘print… Read More »