[quote]
Originally posted by webwiseguys[br]I also have this problem. I discovered that $res->content can't be read if it's saved as a variable, consist of any scalar or hashes.
If you saved $content=$res->content; and print it, it would be just blank. I suspect the $res->content, is a hash. Somehow, it has to be dereferenced, in order to be seen. I am still looking through my books to figure this out. Hopefully I'll find an answer soon.
If anybody knows the answer, pls. reply to this post.
>>
Just pass the refrence by value into a subroutine. You could make another subroutine for your email as well. It did help to actualy see the value of $res->content and I found out the IPN testing site I had been using wasn't working right!
I hope someone finds this info usefull.
Don't use this IPN testing site :
http://www.belahost.com/pp/
Use this IPN testing site:
http://www.eliteweaver.co.uk/testing/ipntest.php
# refrencing info
http://iis1.cps.unizar.e...erl/advprog/ch01_01.htm
&logstuff($res->content);
sub logstuff {
my ($content) = @_;
my ($output, $photoline);
open (LOG, ">>$logstuff");
print LOG ("\nNew Output for $content\n\n");
foreach $output (sort keys(%variable)) {
unless ($output eq '') {
$photoline = "$variable{$output}";
print LOG ("$output : $photoline\n");
}
}
close (LOG);
}