String::Util

String::Util module contains handy string processing utilities.
Download

String::Util Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Miko O'Sullivan
  • Publisher web site:
  • http://search.cpan.org/~miko/

String::Util Tags


String::Util Description

String::Util module contains handy string processing utilities. String::Util module contains handy string processing utilities.SYNOPSIS use String::Util ':all'; # "crunch" whitespace and remove leading/trailing whitespace $val = crunch($val); # does this value have "content", i.e. it's defined # and has something besides whitespace? if (hascontent $val) {...} # format for display in web page $val = htmlesc($val); # remove leading/trailing whitespace $val = trim($val); # ensure defined value $val = define($val); # remove leading/trailing quotes $val = unquote($val); # remove all whitespace $val = nospace($val); # remove trailing r and n, regardless of what # the OS considers an end-of-line $val = fullchomp($val); # or call in void context: fullchomp $val; # encrypt string using random seed $val = randcrypt($val); # are these two values equal, where two undefs count as "equal"? if (equndef $a, $b) {...} # are these two values different, where two undefs count as "equal"? if (neundef $a, $b) {...} # get a random string of some specified length $val = randword(10); Requirements: · Perl


String::Util Related Software