X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fopen.pm;h=fa2a5181b2f5a0c3e8d92337fb9023a441f7cd67;hb=cc83745da206d409d7227df077f422fd9ecbe680;hp=39e194fd19880726e8a1a6b70e408eaefc4c145b;hpb=164794897687cae4b298b3efb3ed2d20c601262b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/open.pm b/lib/open.pm index 39e194f..fa2a518 100644 --- a/lib/open.pm +++ b/lib/open.pm @@ -3,7 +3,7 @@ use warnings; use Carp; $open::hint_bits = 0x20000; # HINT_LOCALIZE_HH -our $VERSION = '1.01'; +our $VERSION = '1.02'; my $locale_encoding; @@ -80,7 +80,7 @@ sub import { foreach my $layer (split(/\s+/,$dscp)) { $layer =~ s/^://; if ($layer eq 'locale') { - use Encode; + require Encode; _get_locale_encoding() unless defined $locale_encoding; (warnings::warnif("layer", "Cannot figure out an encoding to use"), last)