Skip to content

Instantly share code, notes, and snippets.

@kevindawson
kevindawson / gist:5397248
Created April 16, 2013 16:10
perl version -> plv.pl
#!/usr/bin/env perl
use v5.14;
use strict;
use warnings;
our $VERSION = '0.03';
use English qw( -no_match_vars ); # Avoids regex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
@kevindawson
kevindawson / gist:5135322
Created March 11, 2013 16:05
~/.cpan/build/Path-Iterator-Rule-1.003-Jv_uoG$ midgen -co dist
Running midgen v0.12
Database was generated on Mon, 11 Mar 2013 11:42:05 GMT
name = PIR
main_module = lib/PIR.pm
[Prereqs]
perl = 5.010
Carp = 1.26
@kevindawson
kevindawson / gist:2643667
Created May 9, 2012 10:47
another e-mail directive for use with Validation::Class::Plugin::FormFields
use Email::Valid;
use Try::Tiny;
use Validation::Class;
load {plugins => ['FormFields'],};
directive 'is_email2' => sub {
my ($dir, $value, $field, $self) = @_;
my $address;