hoge
This file contains 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 Test::AllModules; | |
use strict; | |
use warnings; | |
use Module::Pluggable::Object; | |
use List::MoreUtils qw(any); | |
use Test::More (); | |
our $VERSION = '0.01'; | |
use Exporter; |
This file contains 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 Test::AllModules; | |
use Test::More; | |
BEGIN { | |
note('compile all modules.'); | |
all_ok( | |
search_path => 'MyApp', | |
check => sub { | |
my $class = shift; |
This file contains 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 Benchmark; | |
use strict; | |
=head1 NAME | |
Benchmark - benchmark running times of Perl code | |
=head1 SYNOPSIS |
This file contains 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/perl | |
use strict; | |
use warnings; | |
use Getopt::Long qw/GetOptionsFromArray/; | |
use IO::Stty; | |
use Digest::HMAC_SHA1 qw//; | |
our $VERSION = 0.01; | |
main(\@ARGV); |
This file contains 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
$ ./dump-perl-stacktrace -p 17688 -d | |
perl_code: open my $fh, '>', qq{/tmp/dump_stacktrace.$$.}.time() or die $!; req | |
uire Carp; print {$fh} Carp::longmess(q{Dump stacktrace}); close $fh; | |
init | |
C | |
R Attaching to process 17688 | |
Reading symbols from /usr/bin/perl...(no debugging symbols found)...done. | |
Reading symbols from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.s | |
o...(no debugging symbols found)...done. | |
Loaded symbols for /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so |
This file contains 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
return sub { | |
my %args = @_; | |
return $sth->fetchall_arrayref(+{}) unless defined $args{print} and $args{print}; | |
my $t = Text::ASCIITable->new(); | |
$t->setCols('explain', 'result'); | |
$t->alignCol({explain => 'right', result => 'left'}); | |
my @cols = @{$sth->{NAME}}; | |
for my $records (@{$sth->fetchall_arrayref}) { |
This file contains 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; | |
my $SUBLIME = '/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'; | |
my $BASE_PATH = '/path/to/physical_file'; | |
my $SHORTCUT = '/path/to/Desktop/mylog.md'; | |
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); | |
$year += 1900; |
This file contains 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 Time::HiRes qw/sleep/; | |
use Furl; | |
my %awesome; | |
{ | |
my $page = 1; | |
while ( my @index = get_index($page) ) { |
This file contains 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
aboriginalise | |
acanthaster | |
accusatival | |
accusatorial | |
aciculate | |
acidophilic | |
aconitine | |
acusector | |
acoustoelectronics | |
acoustooptics |