package Tagtools;
+use URI::Escape;
use HTML::TagCloud;
use Carp;
use Cache::FileCache;
use Storable qw(freeze); use MIME::Base64;
use Calendar::Simple;
+use Text::Balanced qw(extract_multiple extract_quotelike);
sub import {
my $whence = caller;
my ($class) = @_;
return \@month;
};
for my $thing (qw(tagcloud calendar)) {
- *{$whence."::$thing"} = sub { shift->do_cached($thing, @_) }
+ *{$whence."::$thing"} = sub { shift->do_cached(\&{$whence."::_".$thing}, @_) }
}
}
+sub separate_tags {
+ map { s/^"|"$//g; $_}
+ extract_multiple(
+ lc $_[1], [
+ \&extract_quotelike,
+ qr/([^\s,]+)/
+ ], undef,1)
+}
# THIS IS A HACK