Essence
Text
No package variables defined. |
remove_whitespace | No description | Code |
split_words | No description | Code |
trim | No description | Code |
Methods description
Methods code
remove_whitespace | description | top | prev | next |
sub remove_whitespace
{ my $text = shift;
$text =~ s/\s//g;
return $text;
}
sub split_words
{ my $text = shift;
my @words = split /\s|\,|\-|\(|\)|¡@|¡]|¡\^|¡A|¡B|¡C|¡u|¡m|¡n|¡F|¡þ|¡v|¡G|¡H|¡S|¡T|¡I|\?|\!|¡§|¡¨|¡y|¡z|\./, $text;
my @ret = ();
foreach my $w (@words) {
next if $w =~ /^$/;
push @ret, $w;
}
return @ret;
}
sub trim
{ my $text = shift;
$text =~ s/^\s+//;
$text =~ s/\s+$//;
return $text;
}
General documentation
No general documentation available.