Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: winamp lyrics script

by mpeg4codec (Pilgrim)
on Apr 22, 2006 at 19:08 UTC ( #545067=note: print w/ replies, xml ) Need Help??


in reply to winamp lyrics script

Cool script! An interesting alternative would be to find a site that offered lyrics in XML format and use XML::Simple to parse that. I don't know of any such sites, though.

Also, what do you do if the lyrics site doesn't have the song? Does WWW::Mechanize complain?

Here are a few pointers:

If you're going to do a substr() on a scalar and save the result into another scalar, you don't need to explicity copy the scalar first. You can just do:

my $firstletter = substr($artistsong,0,1);

Also, for translating something entirely to capitals, perl has a builtin:

$songtitle = uc $songtitle;


Comment on Re: winamp lyrics script
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-12-23 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls