Don't make C<use legacy> die on unknown legacy names
authorRafael Garcia-Suarez <rgs@consttype.org>
Tue, 15 Dec 2009 23:04:34 +0000 (00:04 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Tue, 15 Dec 2009 23:04:34 +0000 (00:04 +0100)
So we can use C<use legacy "qubits"> to avoid the new "qubit" behaviour,
without worrying about perls that didn't have qubit support at all. :)

lib/legacy.pm

index eaab5d5..1ea7c07 100755 (executable)
@@ -152,9 +152,6 @@ sub import {
             unshift @_, @{$legacy_bundle{$v}};
             next;
         }
-        if (!exists $legacy{$name}) {
-            unknown_legacy($name);
-        }
         $^H |= $unicode8bit::hint_not_uni8bit;   # The only valid thing as of yet
     }
 }