in reply to LWP::Simple and Dancer2 function name collision (solved)
One approach would be to avoid importing symbols from one of the modules that cause the collision. I.e., you could avoid importing symbols from LWP::Simple like so:
(see use) and then invoke the sub using explicit package name:use LWP::Simple (); # () means: do not import any symbols into curre +nt package
When dealing with bigger projects, this approach avoids the name-clashes and removes ambiguity. Using an OO-interface would be another solution if feasible(wrapper?)/available.my $res = LWP::Simple::get('http://www.example.com');
|
|---|