Skip to content

Instantly share code, notes, and snippets.

@maio
Created June 30, 2011 20:07
Show Gist options
  • Save maio/1057094 to your computer and use it in GitHub Desktop.
Save maio/1057094 to your computer and use it in GitHub Desktop.
use Test::More;
use Module;
is($Module::data, undef);
$Module::data = 10;
done_testing();
use Test::More;
use Module;
is($Module::data, undef);
done_testing();
#!/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 $!;
};
}
package Module;
our $data = undef;
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment