Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created June 8, 2011 17:27
Show Gist options
  • Save wchristian/1014872 to your computer and use it in GitHub Desktop.
Save wchristian/1014872 to your computer and use it in GitHub Desktop.
get '/add/*/*' => sub { forward '/add' };
get '/add/*' => sub { forward '/add' };
get '/add' => sub {
my ( $data_type, $sort ) = splat;
my %job = ( data_type => $data_type, sort => $sort, active => 1, min => 0, hour => 0, day => '*', month => '*', weekday => '2' );
debug to_dumper \%job;
template 'edit', { job => \%job, mode => 'add' };
};
[3556] debug @0.002549> [hit #1]$VAR1 = {
'weekday' => '2',
'hour' => 0,
'month' => '*',
'min' => 0,
'active' => 1,
'data_type' => undef,
'sort' => undef,
'day' => '*'
}; in D:/traffics/TFX-Crontabs/lib/TFX/Crontabs.pm l. 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment