projects
/
catagits/Web-Simple.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Support 'use Web::Simple;' to default to current package
[catagits/Web-Simple.git]
/
lib
/
Web
/
Simple.pm
diff --git
a/lib/Web/Simple.pm
b/lib/Web/Simple.pm
index
797d96f
..
9d5efbb
100644
(file)
--- a/
lib/Web/Simple.pm
+++ b/
lib/Web/Simple.pm
@@
-23,7
+23,7
@@
sub setup_dispatch_strictures {
sub import {
setup_dispatch_strictures();
my ($class, $app_package) = @_;
- $class->_export_into($app_package);
+ $class->_export_into($app_package||caller);
}
sub _export_into {