String::MFN - Normalize a string to produce a sane Unix filename
Version 1.29
use String::MFN; my $clean = mfn($dirty);
String::MFN exports a single function, mfn(), which modifies a string to resemble a sane Unix filename.
mfn()
In a nutshell, this means lowercasing everything and either getting rid of "funny" characters or replacing them with sane equivalents which allow the string to maintain some structure. See the test suite for a battery of examples.
Normalizes a string. Returns the normalized string. If no argument is given, $_ is used.
$_
Add "classic" ASCII-oriented function for extra strictness
Add track/sequence number stuff to mfn(1p)
mfn() forces Perl's _is_utf8 flag on, but does not attempt to verify that the data being passed to it is valid UTF-8.
_is_utf8
Please report any bugs or feature requests to bug-string-mfn@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-string-mfn@rt.cpan.org
Shawn Boyette, <mdxi@cpan.org>
<mdxi@cpan.org>
Copyright 2003-2007 Shawn Boyette, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install String::MFN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::MFN
CPAN shell
perl -MCPAN -e shell install String::MFN
For more information on module installation, please visit the detailed CPAN module installation guide.