Acme-Test-Pr0n
view release on metacpan or search on metacpan
$self->{'file'} = <FH>;
close(FH);
return $self;
}
sub DESTROY{}
sub AUTOLOAD {
my $self = shift;
my $flags = shift || undef;
my $name = $AUTOLOAD;
$name =~ s/.*://;
my $clean_string; # store file with all other chars removed
my $num;
if($flags && $flags eq 'i') {
($clean_string = $self->{'file'}) =~ s/([^$name]+)//gi;
if($clean_string) {
$num = ($clean_string =~ s/$name/x/gi);
}
} else {
($clean_string = $self->{'file'}) =~ s/([^$name]+)//g;
if($clean_string) {
$num = ($clean_string =~ s/$name/x/g);
}
}
( run in 8.415 seconds using v1.01-cache-2.11-cpan-94b05bcf43c )