Acme-LSD

 view release on metacpan or  search on metacpan

lib/Acme/LSD.pm  view on Meta::CPAN

use 5.008001;
use strict;
use warnings;

our $VERSION = "0.04";

use base qw<Tie::Handle>;
use Symbol qw<geniosym>;
my $TRUE_STDOUT;

sub TIEHANDLE { return bless geniosym, __PACKAGE__ }

sub PRINT {
    shift;
    local $\ = undef;

    foreach my $str (@_) {
        my $copy = $str;
        $copy =~ s/[^\w']/ /g;   # convert all non-words into spaces
        $copy =~ s/ +/ /g;       # convert all multiple spaces into single space
        $copy =~ tr/A-Z/a-z/;    # convert all words to lowercase



( run in 0.866 second using v1.01-cache-2.11-cpan-de7293f3b23 )