Dpuiu Perl: Difference between revisions

From Cbcb
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= POD =
* [http://en.wikipedia.org/wiki/Plain_Old_Documentation POD]; pod2html  pod2latex pod2man  pod2text  pod2usage
* [http://en.wikipedia.org/wiki/Plain_Old_Documentation POD]; pod2html  pod2latex pod2man  pod2text  pod2usage
= Regular Expressions =
* Maximal match (default)
  echo $PERLLIB | perl -ane '/^(.+):/; print $1,"\n"'
* Minimal match
  echo $PERLLIB | perl -ane '/^(.+?):/; print $1,"\n"'
  /fs/sz-user-supported/Linux-x86_64/lib

Revision as of 11:30, 4 November 2008

POD

  • POD; pod2html pod2latex pod2man pod2text pod2usage

Regular Expressions

  • Maximal match (default)
 echo $PERLLIB | perl -ane '/^(.+):/; print $1,"\n"'
  • Minimal match
 echo $PERLLIB | perl -ane '/^(.+?):/; print $1,"\n"'
 /fs/sz-user-supported/Linux-x86_64/lib