milkbone57 22 years ago
parent
commit
a5a79fb39d
  1. 36
      mos.pl

36
mos.pl

@ -9,26 +9,28 @@ @@ -9,26 +9,28 @@
# License : it's on our TODO list...
# -----------------------------------------------------------------------
use 5.006; # milkbone might work on 5.004 or lower; someone should find out...
eval {
use warnings;
use strict;
use 5.006; # milkbone might work on 5.004 or lower; someone should find out...
use lib 'lib';
use lib '.';
use warnings;
use strict;
use Tk;
use lib 'lib';
use lib '.';
$SIG{CHLD} = 'IGNORE'; # this is so forked processes don't become zombies
use Tk;
use Milkbone;
use Milkbone::Hooks qw(load_options pre_mainloop post_mainloop
$SIG{CHLD} = 'IGNORE'; # this is so forked processes don't become zombies
use Milkbone;
use Milkbone::Hooks qw(load_options pre_mainloop post_mainloop
protocol_signon load_plugins);
$| = 1;
$| = 1;
sub main
{
sub main
{
Milkbone->init();
load_options;
@ -42,9 +44,11 @@ sub main @@ -42,9 +44,11 @@ sub main
data("me") = "test";
MOSLoop;
post_mainloop;
}
}
# off it goes...
main();
};
# off it goes...
main();
print $@ if $@;

Loading…
Cancel
Save