MDK::Common::String man page on OpenMandriva

Man page or keyword search:  
man Server   8135 pages
apropos Keyword Search (all sections)
Output format
OpenMandriva logo
[printable version]

MDK::Common::String(3)User Contributed Perl DocumentatioMDK::Common::String(3)

NAME
       MDK::Common::String - formatting functions

SYNOPSIS
	   use MDK::Common::String qw(:all);

EXPORTS
       bestMatchSentence(STRING, LIST)
	   finds in the list the best corresponding string

       formatList(INT, LIST)
	   if the list size is bigger than INT, replace the remaining elements
	   with "...".

	   formatList(3, qw(a b c d e))	 # => "a, b, c, ..."

       formatError(STRING)
	   the string is something like "error at foo.pl line 2" that you get
	   when catching an exception. formatError will remove the "at ..." so
	   that you can nicely display the returned string to the user

       formatTimeRaw(TIME)
	   the TIME is an epoch as returned by "time", the formatted time
	   looks like "23:59:00"

       formatLines(STRING)
	   remove "\n"s when the next line doesn't start with a space.
	   Otherwise keep "\n"s to keep the indentation.

       formatAlaTeX(STRING)
	   handle carriage return just like LaTeX: merge lines that are not
	   separated by an empty line

       begins_with(STRING, STRING)
	   return true if first argument begins with the second argument. Use
	   this instead of regexps if you don't want regexps.

	   begins_with("hello world", "hello")	# => 1

       warp_text(STRING, INT)
	   return a list of lines which do not exceed INT characters (or a
	   string in scalar context)

       warp_text(STRING)
	   warp_text at a default width (80)

SEE ALSO
       MDK::Common

perl v5.16.3			  2011-04-11		MDK::Common::String(3)
[top]

List of man pages available for OpenMandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net