: : What is going on is we are running an xmlrpc to update information
: : on a website (from what I understand).
: :
: :
: : use Frontier::Client;
: : $uri = 'http://xmlrpc.website.com/updates/';
: : $server = Frontier::Client->new(url => $uri);
: : $server->call($method, $args);
: :
: : $method is a method call and $args is a bunch of arguments ie.
: : (argument1 => $argument...)the method uses. There is something wrong
: : with a/some value(s) in $args and causing the call() to fail. When I
: : print out the values in $args some of them come out as HASH(). I'm
: : trying to see what those values are to make sure they are formated
: : correctly.
: OK, what happens if you do:-
: print $args;
: I'm guessing you get the HASH(0xSomeAddress)? In that case, $args is not a hash, but a hashref (a reference to a hash). So, you need to dereference it.
:
: my %arghash = %$args;
:
: Or you can use the -> operator to access a particular key:-
:
: print $args->{'somekey'};
:
: Or print all entries like this:-
:
: print "$_ = $args->{$_}\n" for (sort keys %$args);
That is what I was looking for!
:
: : I'm thinking i'm going to have to go back in the code and print
: : things out there. Would be easier if I was "able to do direct memory
: : access in Perl!!!" but it doesn't seem that way?
: Hehe...well, direct memory access in Perl wuoldn't really do what you think/want in this context anyway.
Yah, I was thinking something else =P
But I'd rather not think about Perl 5 internals. Nor would most people, thus the current rewrite for Perl 6. <grins> C is a language where you can do direct memory access, and you reap the rewards, including segfaults when you miscode stuff.
Haven't touched C in over 4 years now but I liked it back then =)
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
:
Thanks again for the help Jonathan!