ansh batra has asked for the wisdom of the Perl Monks concerning the following question:

hi monks
i want to create a simple perl script where when i run the script
perl scriptname.pl keyword
it should open a flash window and start playing the video which came first in the results of youtube search for the word "keyword"
can you guys tell me the best as well as the simple modules for flash and youtube to do this task?

Replies are listed 'Best First'.
Re: idea of making "i am feeling lucky" for youtube
by JavaFan (Canon) on Dec 23, 2011 at 11:27 UTC
    There's no "best" module. There are several, and what's best for you may not be best for me. In fact, the best module for me would be no module, as my needs are different from yours (I don't like playing youtube videos for instance).

    But you don't really care about "best". You just want a module that's good enough (that is, it scratches your itch). Go to CPAN. Search for modules doing what you need. Take the top one. If it's good enough, use it. Else, take the next. Rinse. Repeat. Don't waste time finding the better one if you've already found one that's good enough.

      by "best" i meant best to do this task.
      and thanks for your advice ill follow it from now on :)
Re: idea of making "i am feeling lucky" for youtube
by Anonymous Monk on Dec 23, 2011 at 09:43 UTC

    can you guys tell me the best as well as the simple modules for flash and youtube to do this task?

    No.

    Repeat!

    Now read the SYNOPSIS, copy/paste some bits, ... and you're programming

    See also get-flash-videos https://github.com/monsieurvideo/get-flash-videos/blob/master/lib/FlashVideo/Site/Youtube.pm

    A reply falls below the community's threshold of quality. You may see it by logging in.