-
-
Save maio/1057094 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
use Test::More; | |
use Module; | |
is($Module::data, undef); | |
$Module::data = 10; | |
done_testing(); |
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
use Test::More; | |
use Module; | |
is($Module::data, undef); | |
done_testing(); |
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 warnings; | |
use Sub::Fork qw( fork ); | |
use Test::More; | |
use Moose; | |
no Moose; | |
my ($file) = @ARGV; | |
foreach my $file ( @ARGV ) { | |
fork sub { | |
do $file || die $!; | |
}; | |
} |
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
package Module; | |
our $data = undef; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment