Change #20578 to SelfLoader is probably also useful to AutoSplit.
[p5sagit/p5-mst-13.2.git] / lib / open.pm
index 39e194f..c8bc606 100644 (file)
@@ -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)