This file contains hidden or 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 MyApp; | |
__PACKAGE__->request_class('MyApp::Request'); | |
package MyApp::Request; | |
use strict; | |
use parent 'Catalyst::Request'; | |
sub method { |
This file contains hidden or 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
my $router = HTTP::Router->define(sub { | |
$_->with({ controller => 'users' }, sub { | |
$_->match('/login')->register; | |
$_->match('/logout')->register; | |
$_->match('/signup')->register; | |
}); | |
}); |
This file contains hidden or 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 FindBin::libs; | |
use YAML; | |
use Sniffer::RTMP; | |
my $dev = $ARGV[0] or die 'require device name'; |
NewerOlder