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

Re: Golf: Fix de facto HTML comments

by ysth (Canon)
on Jul 18, 2004 at 22:00 UTC ( #375431=note: print w/replies, xml ) Need Help??


in reply to Golf: Fix de facto HTML comments

Here's what I got (63, but much clearer than blokhead's, at least to me):
substr($_,$-[1],$+[1]-$-[1])=~s/--/-\xad/g while/<!--(.*?)-->/g
Update: Sigh; I see I fell prey to the same trap blokhead did. I'll see if I can fix it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://375431]
help
Chatterbox?
[Lady_Aleena]: shmem, there is ONE song which throws a wrench in the works for both MP3::Info and MP3::Tag.
[shmem]: Lady_Aleena: fix it, or delete it ;-)
[Lady_Aleena]: shmem, I'm not sure how.
[shmem]: well, deleting is done with 'rm' :-P
[shmem]: you can break up the chain MP3::Tag->new($_)- >interpolate("\%S ") and test whether MP3::Tag->new($_) is true
[Lady_Aleena]: shmem, no to deletion.
[shmem]: can't help you there since that song is not on my bench

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-04-23 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.