A
Alythh
I have the beginning of a filename, say $songname,
and I have to pattern-match it with the complete filename, from a list
@allfiles taken from a directory.
Doing
foreach( @allfiles )
{
if ( /$songname/ )
{ $truename = $_ }
}
should work, only problem is filenames often include chars as (), etc
and I got a runtime error:
Unmatched ( before HERE mark in regex m/God Within Featuring Scott Har
- The Phoenix ( << HERE Ritm.mp3/ at
/0ale/excursions/digital/script/stream_smart.pl line 68.
<background>
it should work as wrapper to streamripper, to erase .mp3s saved but
incomplete, due to mpglib errors. If you used streamripper you'll know
what I mean.
Filename like that often seem like:
God Within Featuring Scott Har - The Phoenix (Ritm's River.mp3
</background>
Thanks for any help...
Alessandro Magni
and I have to pattern-match it with the complete filename, from a list
@allfiles taken from a directory.
Doing
foreach( @allfiles )
{
if ( /$songname/ )
{ $truename = $_ }
}
should work, only problem is filenames often include chars as (), etc
and I got a runtime error:
Unmatched ( before HERE mark in regex m/God Within Featuring Scott Har
- The Phoenix ( << HERE Ritm.mp3/ at
/0ale/excursions/digital/script/stream_smart.pl line 68.
<background>
it should work as wrapper to streamripper, to erase .mp3s saved but
incomplete, due to mpglib errors. If you used streamripper you'll know
what I mean.
Filename like that often seem like:
God Within Featuring Scott Har - The Phoenix (Ritm's River.mp3
</background>
Thanks for any help...
Alessandro Magni