#!/usr/bin/env perl use strict; use warnings; use FindBin; BEGIN { unshift @INC, "$FindBin::Bin/../lib" } use Getopt::Long qw(GetOptions :config no_auto_abbrev no_ignore_case); GetOptions 'f|foreground' => sub { $ENV{HYPNOTOAD_FOREGROUND} = 1 }, 'h|help' => \my $help, 's|stop' => sub { $ENV{HYPNOTOAD_STOP} = 1 }, 't|test' => sub { $ENV{HYPNOTOAD_TEST} = 1 }; die <new->run($app); =encoding utf8 =head1 NAME hypnotoad - Hypnotoad HTTP and WebSocket server =head1 SYNOPSIS $ hypnotoad --help $ hypnotoad myapp.pl =head1 DESCRIPTION Start L and L applications with the L web server. =head1 SEE ALSO L, L, L. =cut