String::Iota - Simple interface to some useful string functions
use String::Iota; $str = "Just another perl hacker"; print trim $str, 4; # Just print strim $str, 'p'; # Just another @info = dismantle $str; print join ", ", @info; # 24, J, u, s, t, , a, n, o, t, h, e, r, , p, e, r, l, , h, a, c, k, e, r open (FILE, "+<", "/test.txt"); while (<FILE>) { trim $_, 40; # Trim every line of test.txt to 40 characters strim $_, "#"; # Get rid of comments }
This module provides several simple, small and fast functions for processing strings.
Lincoln Ombelets, <ch.animalbar@gmail.com>
Copyright (C) 2009 by Lincoln Ombelets
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install String::Iota, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Iota
CPAN shell
perl -MCPAN -e shell install String::Iota
For more information on module installation, please visit the detailed CPAN module installation guide.