Created
February 21, 2013 23:47
-
-
Save tene/5009530 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
#!/usr/bin/env perl | |
use strict; | |
use v5.10; | |
use Test::More tests => 2; | |
require './foo.pl'; | |
is( fooize('test1'), 'foo test1'); | |
is( fooize('test2'), 'foo test2'); |
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
#!/usr/bin/env perl | |
use strict; | |
use v5.10; | |
sub fooize { | |
'foo ' . $_[0] | |
} | |
if (not caller) { | |
say fooize 'ohai'; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment