Skip to content

Instantly share code, notes, and snippets.

@Util
Created January 1, 2010 04:47
Show Gist options
  • Save Util/267043 to your computer and use it in GitHub Desktop.
Save Util/267043 to your computer and use it in GitHub Desktop.
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;
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