in reply to Re: Universal Require
in thread Universal Require

thanks gh, i'll bear that in mind for future ref..

as for the prob i got it working, all it needed was ;

my $content = get $url; changing to my $content = get($url);

doh!

aXML now has a new plugin called <geturl> :) :)

my $module = 'LWP::Simple'; my $return_val = $module->use; if ($return_val) { $result = get($data); } else { $result = "<error>Couldn't retrieve url</error>"; }

Replies are listed 'Best First'.
Re^3: Universal Require
by blazar (Canon) on Apr 15, 2007 at 10:32 UTC
    as for the prob i got it working, all it needed was ;
    my $content = get $url; changing to my $content = get($url);

    Really? I find that hard to believe:

    Update: I stand corrected. Had not really understood what the issue was about, out of only reading superficially. Shame on me! Rest of post fundamentally irrelevant now.


    and

      Really? I find that hard to believe:

      Of course you get the prototype for get() if you load LWP::Simple at compile time! Without a BEGIN block, however, UNIVERSAL::require loads a module at run time though.