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

So im looking to download my list of songs off Pandora, a music site, but its a large list of songs. So i was wondering if there is a way to have a perl script to take each song name and place it in limewire's search bar to find it?

Replies are listed 'Best First'.
Re: using perl with other applications
by ww (Archbishop) on Jun 25, 2011 at 22:24 UTC
    The answer is "yes."

     
     

    Now, do you have another question?

    1. If so, read the FAQs on this site.
    2. If the request is "please do it for me" please repeat step 1.
    3. When you've got the fact that the request is 2 in not how this works; when you understand that we'll gladly help you learn but generally will * not * do it for you, why... show us what you've tried. We'll have something to discuss!
Re: using perl with other applications
by madd (Acolyte) on Jun 26, 2011 at 13:37 UTC

    Which part of the process, particularly are you having trouble with? If you post your code, and any error messages you'll receive a lot more useful help.

    For instance, if you have your list of songs formatted with one song per line then the following would work:

    #!/usr/bin/perl -s @ARGV == 1 or die "usage ThisScript filename\n"; $list_of_songs=$ARGV[0]; chomp $list_of_songs; open ($LOS, "$list_of_songs") or die "$list_of_songs cannot be opened +for reading \n"; @songs=<$LOS>; close($LOS); foreach $song_title (@songs) { chomp $song_title; search_limewire($song_title); }