Next The Perl Hardware Store DC.pm Version 43

A Function With Two Names

If you wrote the same code twice, you made a mistake.

        sub FIRSTKEY { require Carp; 
                       Carp::croak("`each' not implemented"); }
        sub NEXTKEY  { require Carp; 
                       Carp::croak("`each' not implemented"); }
        sub FIRSTKEY { ... }
        BEGIN { *NEXTKEY = \&FIRSTKEY }


Next Copyright © 2003 M. J. Dominus