- GitHub Staff
- https://bento.me/kyanny
- @kyanny
- in/kyanny
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
#!perl | |
# $Id$ | |
use strict; | |
use warnings; | |
use File::Spec; | |
use FindBin; | |
use lib File::Spec->catdir($FindBin::Bin, "..", "lib"); | |
use Getopt::Long; |
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/local/bin/perl | |
use strict; | |
use Data::Dumper; | |
warn Dumper { key => 'value' }; | |
sub ret1 { return } | |
sub ret2 { return undef } | |
sub _wantarray { wantarray ? 'list' : 'scalar' } |
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/local/bin/perl | |
use strict; | |
use Devel::Size qw(size); | |
use Perl6::Say; | |
use URI; | |
use URI::Query; | |
my $url = 'http://nttdocomosucks.example.com/path?too=many&query=string'; | |
my $uri = URI->new($url); |
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/local/bin/perl | |
use strict; | |
use Template; | |
use Data::Dumper; | |
sub myfilter { | |
my ($context, $key) = @_; | |
return sub { | |
my $text = 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
svn log http://fastladder.googlecode.com/svn/trunk/ -q | perl -anle 'next if /^-+$/; $,=q{,}; $committers{$F[2]}++; END{ print keys %committers}' |
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
#!/bin/sh | |
# $Id$ | |
svn log --stop-on-copy -q | perl -anle 'next if /^\-+$/; unshift @rows, $F[0]; END { $rev = sprintf(q/%s:%s/, $rows[0], $rows[-1]); $rev =~ s/r//g; print $rev }' |
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 DateTime; | |
use DateTime::Set; | |
use DateTime::Span; | |
use Data::Dumper; | |
my $d1 = DateTime->new(year => 2009, month => 2, day => 27); | |
my $d2 = DateTime->new(year => 2009, month => 4, day => 1); |
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 DateTime; | |
use DateTime::Format::Japanese; | |
use Perl6::Say; | |
my $fmt = DateTime::Format::Japanese->new; | |
my $dt = DateTime->today(time_zone => 'local'); | |
my $str = $fmt->format_ymd($dt); |
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 DateTime; | |
use DateTime::Format::Japanese; | |
use Perl6::Say; | |
my $fmt = DateTime::Format::Japanese->new; | |
my $dt = DateTime->today(time_zone => 'local'); | |
my $str = $fmt->format_ymd($dt); |
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 DateTime; | |
use DateTime::Format::Japanese; | |
use Perl6::Say; | |
my $fmt = DateTime::Format::Japanese->new; | |
my $dt = DateTime->today(time_zone => 'local'); | |
my $str = $fmt->format_ymd($dt); |
OlderNewer