in reply to RobotUA not working
in thread RobotUA not working
There's a few things you can check. First, compare your old code with your new script. Either of the following two code fragments would result in the behaviour you're reporting. (Assuming, of course, a content-type of text/html.)
# Chaining methods $content = $ua->get($uri)->content; print $content; # Providing content to 'print()' via method print $content->content;
Another possibility, albeit fairly remote, is that your reinstallation of the modules overwrote some customisations in the previous installation. (Never discount even remote possibilities as swngnmonk found in his hell which is debugging and I can atest to from personal experience.)
Lastly, I'd suggest renaming the variable $content (perhaps to $response) to avoid any confusion with the method content() and also to more accurately reflect the data it holds.
PN5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: RobotUA not working
by mkurtis (Scribe) on Mar 07, 2004 at 05:46 UTC | |
by Prior Nacre V (Hermit) on Mar 07, 2004 at 06:14 UTC | |
by Prior Nacre V (Hermit) on Mar 07, 2004 at 18:45 UTC | |
by mkurtis (Scribe) on Mar 07, 2004 at 18:54 UTC |