davies has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write some code using LWP::Simple and Dancer2. This complains about each of them exporting "get" into the main:: namespace. LWP's documentation is silent about this, while Dancer's is, to me at least, incomprehensible. It says:
Import gets called when you use Dancer2. You can specify import options giving you control over the keywords that will be imported into your webapp and other things: use Dancer2 ':script'; Import Options ":script" Do not process arguments.
Googling has got me nowhere. Can anyone suggest some reading I might usefully do?
Regards,
John Davies
Update: Thanks, Perlbotics. Your solution works perfectly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple and Dancer2 function name collision
by Perlbotics (Archbishop) on Jan 05, 2014 at 17:33 UTC | |
|
Re: LWP::Simple and Dancer2 function name collision ( Exporter )
by Anonymous Monk on Jan 05, 2014 at 17:46 UTC |