Matthew Pocock > MRP > MRP::Text

Download:
MRP-1.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1   Source  

NAME ^

MRP::Text - some text utilities

DESCRIPTION ^

Provides a small number of text manipulating methods that I use all the time. They are invoked as MRP::Text->func.

SYNOPSIS ^

print "got ", MRP::Text->pretyArray(@someList), "\n";

Functions ^

pretyArray

use:

  print MRP::Text->pretyArray(qw(pig dog cat)); # prints out (pig, dog, cat)
  print MRP::Text->pretyArray($arrayRef); # prety-prints the contence of the array ref
pretyHash

use:

  print MRP::Text->pretyHash($leader, $hashRef);
  print MRP::Text->pretyHash($leader, %hash);

leader is printed before each key/value pair.

AUTHOR ^

Matthew Pocock mrp@sanger.ac.uk

syntax highlighting: