Created
August 1, 2011 06:33
-
-
Save kentaro/1117661 to your computer and use it in GitHub Desktop.
Dancer with Config::ENV
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/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