Created
January 1, 2010 04:47
-
-
Save Util/267043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Year::2010::AD; | |
# Save as path: Year/2010/AD.pm | |
use strict; | |
use warnings; | |
use base qw(Exporter); | |
our @EXPORT_OK = qw( &Happy *ALL ); | |
our %EXPORT_TAGS = ( all => \@EXPORT_OK ); | |
sub Happy { | |
return 'Happy New Year', @_, "\n"; | |
} | |
BEGIN { | |
open ALL, '>&=', STDOUT or die; | |
} | |
1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Year::2010::AD qw(:all); | |
print {ALL} Happy('!'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment