<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Louis. From the information you give below it appears as though
$responce is a hash reference.</tt><br>
<br>
Luis Medrano Zaldivar wrote:
<blockquote cite="mid433da823.2a50eda5.692f.ffffbf27@mx.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
tt
        {font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style></o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Here is what
I got:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">my $responce
= $rpc->call
("blogger.getUsersBlogs",$key,$username,$password);<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I need to
extract what is on $responce
meaning values and keys related to those values.</span></font></p>
</div>
</blockquote>
<tt>'Keys' and 'Values' sounds like hash lingo.<br>
<br>
However, from the snippet below it appears as though $responce is an
array reference.</tt>
<blockquote cite="mid433da823.2a50eda5.692f.ffffbf27@mx.gmail.com"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font>
<br>
<font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">I’m
modifying a script were has this variable @{$responce} and I need to
pull all
the data from there but I don’t recall how to do it. I will appreciate
if you
can help me with this.</span></font> <br>
<font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font>
<br>
</p>
</div>
</blockquote>
<tt>The syntax @{$foo} means that $foo is a reference and you want to
treat it like an array.<br>
<br>
Do you know the what kind of variable $responce is? To find out try
calling the ref() function with $responce as the argument:<br>
<br>
my $ref = ref($responce);<br>
print STDERR "response is a :'$ref'";<br>
<br>
This will tell you what kind of variable you are working with.<br>
<br>
See the documentation for the ref function by running 'perldoc -f ref'<br>
<br>
Once you know what kind of variable it is you can get to the
information it holds in different ways. See perldoc perlref for
details on how to get information out of hash and array references
depending on how you want to use it.<br>
<br>
Also, $responce may not be a simple data structure. Since it's being
returned by the method 'call' on the $rpc object $responce may be an
object itself. Where did the $rpc object come from? Do you know what
"Class" it belongs to? Documentation for this Class should tell you
what to expect when you use the "call" method and how to get the
information you need out of it.<br>
<br>
Good Luck,<br>
<br>
-- Ben Burnett<br>
</tt>
</body>
</html>