Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: explore a complexe hash structure return by Webservices::GData::YouTube

by Anonymous Monk
on Dec 11, 2012 at 09:11 UTC ( #1008244=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        foreach my $video (@$videos) {
            say $video->video_id;
            say $video->favorite_count;
            say $video->duration;
  2. or download this
    91:ok( @{ $entry->thumbnails } == 5, 'number of thumbnails is right.' 
    93:ok($entry->thumbnails->[0]->url eq '
    +LE/default.jpg','thumbnail is properly set.');
  3. or download this
               my $thumbs =$video->thumbnails;
               foreach my $thumb (@$thumbs) {
                    say $thumb->width;
                    say $thumb->height;
  4. or download this
    #!/usr/bin/perl --
    use strict;
    use warnings;
    #~         say $thumb->height;
    } ## end sub display_video

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008244]
[stevenlm87]: Needs help. I am taking an online class for perl and is using Padre. How can I get a list from the input in this code? print "What are your favorite hobbies? "; my $hobbies = <STDIN>; chomp $hobbies; print "Your favorite hobbies are '$hobbies'\n";
[toolic]: what does your input look like?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-02-23 19:52 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (351 votes). Check out past polls.