http://www.perlmonks.org?node_id=267838


in reply to pulling php into perl

you might try
my $online_indicator = 'http://mydomain.com/chatmonk3y/online_indicato +r/webber.php?jid=' . $seller . '@mydomain.com'; # or more abstract # my $online_indicator = $protocol . $hostname . $pathToScript . $argu +mentList;

Note that double quotes force content negotiation whereas single quotes don't (which slightly speeds up the script as some parsing isn't needed).

Have a nice day
All decision is left to your taste

Update
But what does my $scalar($seller) do? Where do you use that?
Might be helpfull to post some more code to better document the context of the problem.

Replies are listed 'Best First'.
Re: Re: pulling php into perl
by th3monk3y (Novice) on Jun 21, 2003 at 18:47 UTC
    Same thing... still broke :(

    http://www.bidmonkey.com/cgi-bin/th3monk3y/itemtest.pl?item=17027

    scroll down the page about midway to where you see the hit counter and on the left hand side and you will see the broken "test" image. if you view the properties you will see the following: Click on this link and it works...

    http://bidmonkey.com/chatmonk3y/online_indicator/webber.php?jid=mhuka@bidmonkey.com

     

    "But what does my $scalar($seller) do?"

    sorry about that.... What I meant was that my scalar is named $seller

    What I don't understand is, why is it that when I hard code monkeyboy instead of $seller, it works?????

    Maybe I need to force perl to do the variable before it does the request??? just as if it was hard coded... Is there a way to do this?

    Regards,

    -Paul