th3monk3y has asked for the wisdom of the Perl Monks concerning the following question:
http://mydomain.com/chatmonk3y/online_indicator/webber.php?jid=monkeyboy@mydomain.com
I have been able to pull it into my perl script and make it work as long as it is hardwired!!
my $online_indicator = "http://mydomain.com/chatmonk3y/online_indicator/webber.php?jid=monkeyboy\@mydomain.com";
etc... etc... then print to the page...
$content=~ s/<!-ONLINE_INDICATOR-->/$online_indicator/;
now, just as soon as i replace "monkeyboy" with my $scalar($seller)...it no longer works!
my $online_indicator = "http://mydomain.com/chatmonk3y/online_indicator/webber.php?jid=$seller\@mydomain.com";
It's almost like perl is writing in the scalar after the fact! Is there a way to force perl to fill in the $scalar before it does the request? It's wierd because on my output page it shows a broken image, but if I right click and view the properties, the "path" to the image is correct! When I say "path" I mean the $scalar has been filled in...I can actually copy and paste that path into the browser and then hit my target just fine...
I have tried using LWP::SIMPLE with get("myurl") but as soon as there are any html tags in the script (output)... it displays my image as a bunch of garlbled text!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pulling php into perl
by Coruscate (Sexton) on Jun 21, 2003 at 19:50 UTC | |
by Anonymous Monk on Jun 21, 2003 at 19:59 UTC | |
by Anonymous Monk on Jun 21, 2003 at 20:01 UTC | |
by Coruscate (Sexton) on Jun 21, 2003 at 20:05 UTC | |
by Anonymous Monk on Jun 21, 2003 at 20:56 UTC | |
|
Re: pulling php into perl
by little (Curate) on Jun 21, 2003 at 18:01 UTC | |
by th3monk3y (Novice) on Jun 21, 2003 at 18:47 UTC | |
|
Re: pulling php into perl
by fglock (Vicar) on Jun 21, 2003 at 18:57 UTC | |
by Anonymous Monk on Jun 21, 2003 at 19:32 UTC |