Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
The call is returning a valid hash. It's my syntax following the twitter API call that's problematic. When I do:
my $nt = Net::Twitter->new( traits => [qw/API::REST/], username => $usename, password => $pwd ); my $results = $nt->show_user($twitterID); print Dumper $results;
Here's what I get:
$VAR1 = { 'friends_count' => 6, 'profile_background_tile' => bless( do +{\(my $o = 0)}, 'JSON::XS::Boolean' ), 'status' => { 'source' => 'Per +l Net::Twitter', 'favorited' => $VAR1->{'profile_background_tile'}, ' +truncated' => $VAR1->{'profile_background_tile'}, 'created_at' => 'Tu +e Jul 21 11:25:47 +0000 2009', 'text' => 'Checking server responses', + 'in_reply_to_user_id' => undef, 'id' => 2056026009, 'in_reply_to_sta +tus_id' => undef, 'in_reply_to_screen_name' => undef }, 'profile_imag +e_url' => 'http://s3.amazonaws.com/twitter_production/profile_images/ +000000000/January-2008__2__normal.JPG', 'profile_sidebar_fill_color' +=> 'e0ff92', 'profile_link_color' => '0000ff', 'profile_sidebar_borde +r_color' => '87bc44', 'created_at' => 'Thu Sep 11 23:45:20 +0000 2008 +', 'profile_background_color' => '9ae4e8', 'utc_offset' => -28800, 'n +otifications' => $VAR1->{'profile_background_tile'}, 'url' => 'http:/ +/www.mysite.com', 'verified' => $VAR1->{'profile_background_tile'}, ' +id' => 16249787, 'following' => $VAR1->{'profile_background_tile'}, ' +profile_background_image_url' => 'http://static.twitter.com/images/th +emes/theme1/bg.gif', 'screen_name' => 'myname', 'location' => 'WA', ' +followers_count' => 13, 'name' => 'myname', 'protected' => $VAR1->{'p +rofile_background_tile'}, 'statuses_count' => 8, 'description' => 'Te +chnology', 'profile_text_color' => '000000', 'time_zone' => 'Pacific +Time (US & Canada)', 'favourites_count' => 0 };

In reply to Re^2: Parsing a Hash by northwestdev
in thread Parsing a Hash by northwestdev

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-08-15 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?