Created
June 30, 2020 19:53
-
-
Save kentfredric/875a5d2f9d56a7438669cbabfdc3b885 to your computer and use it in GitHub Desktop.
This file contains 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
#!perl | |
#p7-pretend | |
use strict; | |
use warnings; | |
use feature 'signatures'; | |
no warnings "experimental::signatures"; | |
use lib '.'; | |
use OMG qw(foo); | |
foo 1,2; |
This file contains 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
#p7-pretend | |
use strict; | |
use warnings; | |
use feature 'signatures'; | |
no warnings "experimental::signatures"; | |
package OMG; | |
BEGIN { | |
# pretend this says | |
# if ( $] >= 7 ) { | |
if (1) { | |
require feature; | |
feature->unimport('signatures'); | |
} | |
} | |
use Exporter; | |
*import = \&Exporter::import; | |
our @EXPORT_OK = ( 'foo', ); | |
sub foo($$) { | |
printf "Hello, your arguments were: %s %s\n", @_; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment