| 1 | package UNIVERSAL; | ||
| 2 | |||
| 3 | our $VERSION = '1.12'; | ||
| 4 | |||
| 5 | # UNIVERSAL should not contain any extra subs/methods beyond those | ||
| 6 | # that it exists to define. The existence of import() below is a historical | ||
| 7 | # accident that can't be fixed without breaking code. | ||
| 8 | |||
| 9 | # Make sure that even though the import method is called, it doesn't do | ||
| 10 | # anything unless called on UNIVERSAL. | ||
| 11 | sub import { | ||
| 12 | return unless $_[0] eq __PACKAGE__; | ||
| 13 | return unless @_ > 1; | ||
| 14 | die ("UNIVERSAL does not export anything"); | ||
| 15 | } | ||
| 16 | |||
| 17 | 1; | ||
| 18 | __END__ |