Skip to content

Instantly share code, notes, and snippets.

@tene
Created February 21, 2013 23:47
Show Gist options
  • Save tene/5009530 to your computer and use it in GitHub Desktop.
Save tene/5009530 to your computer and use it in GitHub Desktop.
#!/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');
#!/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