Hi there,
this might be a tricky one... here is my problem... I have a php script for my jabber online status indicator... hardwired it looks like this... calls to the script with args....

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!!


In reply to pulling php into perl by th3monk3y

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.