Skip to content

Instantly share code, notes, and snippets.

@kentaro
Created August 1, 2011 06:33
Show Gist options
  • Save kentaro/1117661 to your computer and use it in GitHub Desktop.
Save kentaro/1117661 to your computer and use it in GitHub Desktop.
Dancer with Config::ENV
#!/usr/bin/env perl
use strict;
use warnings;
package MyConfig;
use Config::ENV 'FOO_ENV';
package main;
use Dancer ':syntax';
BEGIN { MyConfig->import }
config; #=> Subroutine main::config redefined
#=> Prototype mismatch: sub main::config: none vs ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment