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/perl; | |
#DB.pm | |
package DB; | |
use DBIx::Skinny connect_info => +{ | |
dsn => 'dbi:mysql:deafnews:localhost', | |
username => 'root', | |
password => 'password', | |
connect_options => +{ | |
RaiseError => 1, | |
PrintError => 0, |
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/perl | |
use strict; | |
use warnings; | |
use Perl6::Say; | |
use Data::Dumper; | |
use LWP::UserAgent; | |
use XML::Simple; |
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/perl | |
use strict; | |
use warnings; | |
use WebService::Simple; | |
use WebService::Simple::Parser::JSON; | |
use Perl6::Say; | |
use Data::Dumper; | |
use Encode; |
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/perl | |
use strict; | |
use warnings; | |
use Imager; | |
my $filename = shift; | |
my $img = Imager->new; | |
$img->read( file => $filename ) or die $img->errstr; | |
$img->filter( type => 'contrast', intensity => 1.3 ); |
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/perl | |
use strict; | |
use warnings; | |
use Perl6::Say; | |
use Data::Dumper; | |
use DateTime; | |
use LWP::UserAgent; |
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/perl | |
use Perl6::Say; | |
use Data::Dumper; | |
my %hash = ('makoto' => 'perl', | |
'nozaki' => {}); | |
sub push_hash{ | |
my %hash = @_; |
NewerOlder