+ - Optimise _hsv_dot since it gets called heavily by HTML::String::TT
+
1.000001 - 2013-01-03
- Localize $@ in isa and can in case of modules that mishandle eval {}
- Support for single quotes (' to ')
use strictures 1;
use UNIVERSAL::ref;
use Safe::Isa;
+use Scalar::Util qw(blessed);
use Data::Munge;
use overload
;
sub new {
- if (ref($_[0])) { my $c = shift; return $c->_hsv_unescaped_string->new(@_) }
+ if (blessed($_[0])) {
+ my $c = shift;
+ return $c->_hsv_unescaped_string->new(@_);
+ }
my ($class, @raw_parts) = @_;
my $opts = (ref($raw_parts[-1]) eq 'HASH') ? pop(@raw_parts) : {};
push @parts, @new_parts;
}
- return ref($self)->new(@parts, { ignore => $self->{ignore} });
+ return bless({ %$self, parts => \@parts }, blessed($self));
}
sub _hsv_is_true {