Search
Results
Perl Map cgi::param
my $app = { 'form' => { map { $_ => ($cgi->param($_))[0] } $cgi->param }, };
GitHub - rawleyfowler/Humming-Bird: A simple, composable and performant web application framework for Raku
Perl Time Snippet
my @now = localtime; $now[5] += 1900; $now[4] += 1; for my $l (0 .. (scalar(@now) - 1)) { $now[$l] = sprintf("%02d",$now[$l]); }
Perl Key Sort w/Map
my @sorted = map substr($_, 4) => sort map pack('C4' => /(\d+)\.(\d+)\.(\d+)\.(\d+)/) . $_ => keys $output;
%main:: and my'd vars
use PadWalker qw(peek_my); use Data::Dumper; my $s = "a string"; { my @a = qw(an array); print Dumper( peek_my(0) ); } my %h = qw(a hash); print Dumper( peek_my(0) ); sub debugger { use Data::Dumper; $Data::Dumper::Indent = 1; $Data::Dumper::Purity = 1; $Data::Dumper::Terse = 0; $Data::Dumper::Deparse = 1; my ($_a) = @_; open(my $_debug,'>','./logs/'.$_a->{'facility'}.'-debug.log'); print $_debug Dumper($_a->{'data'})."\n"; close($_debug); }
Google-Calendar-Perl-access/oauth2.sh at master · rjwhite/Google-Calendar-Perl-access
OOP - Object Oriented Perl
Perl 5 by Example: Handling Errors and Signals
Perl Date Array
my @d = localtime; $d[5] += 1900; $d[4] += 1; for my $l (0 .. (scalar(@d) - 1)) { $d[$l] = sprintf("%02d",$d[$l]); }
Loading data from file
for my $s (0 .. (scalar(@source_list) - 1)) { print " - Loading: $source_list[$s]\n"; push(@sources,do "$srpz_home/sources/$source_list[$s]\.pl"); }