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
use strict; | |
use warnings; | |
use Benchmark qw(timethese cmpthese); | |
use Data::Encoder; | |
my $module = 'Data::Encoder'; | |
my $josn = $module->load('JSON'); | |
my $dumper = $module->load('Data::Dumper'); |
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
use strict; | |
use warnings; | |
use Test::More; | |
use HTML::Filter::Callbacks; | |
my $SKIP_TAGS = { map { $_ => 1 } qw(title textarea) }; | |
my $code = sub { | |
my ($tag, $c) = @_; | |
my $text = $tag->text; | |
# note explain $tag; |
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/evn perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use JSON; | |
use Getopt::Long qw/GetOptions/; | |
use Encode; | |
use Term::Encoding qw/term_encoding/; | |
use Sub::Retry; |
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 LogOreno; | |
use strict; | |
use warnings; | |
use Log::Minimal; | |
use parent qw(LogOreno2); | |
sub import { | |
my $class = shift; |
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
=encoding utf-8 | |
=for stopwords | |
=head1 欲しいものリスト | |
=over | |
=item Types.pm ほしい (tokuhirom, xaicron) |
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
use strict; | |
use warnings; | |
use version; | |
use File::Spec; | |
use Getopt::Long qw/GetOptions/; | |
sub usage; | |
my $conf = do "$ENV{HOME}/.pswrc" || do "$ENV{HOME}/_pswrc" || {}; |
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
use strict; | |
use warnings; | |
use 5.12; | |
sub list { | |
return qw(miyagawa tokuhirom nekokak); | |
} | |
sub array { | |
my @ret = qw(miyagawa tokuhirom nekokak); |
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 Hoge; | |
use strict; | |
use warnings; | |
sub new { | |
bless {}, shift; | |
} | |
sub all { | |
return qw(tokuhirom nekokak chiba gfx); |
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
use inc::Module::Install; | |
use Module::Install::TestTarget; | |
name 'MyApp'; | |
all_from 'lib/MyApp.pm'; | |
requires 'DBI'; | |
requires 'JSON'; | |
test_requires 'Test::More'; |
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
2e;foo=bar;baz="qux" | |
The quick brown fox jumps over the lazy dog.\n | |
2e;foo=bar;baz="qux" | |
The quick brown fox jumps over the lazy dog.\n | |
2e;foo=bar;baz="qux" | |
The quick brown fox jumps over the lazy dog.\n |