
MRP::Text - some text utilities

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

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

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
use:
print MRP::Text->pretyHash($leader, $hashRef); print MRP::Text->pretyHash($leader, %hash);
leader is printed before each key/value pair.

Matthew Pocock mrp@sanger.ac.uk