Sorry, the file gets cut off at the '. i.e. if a scalar variable is /mnt/disk/sound/high_quality/how_now_brown_cow_ain't_happenin.flac it will cut off at the ' in ain't. now my thought was something like this
here's something to be a little more descriptive: my $i = /mnt/disk/sound/high_quality/how_now_brown_cow_ain't_happenin.flac; if ( /[']/ ) { link /tmp/tmp_music_file $i; system flac qq(flac -c -d /tmp/tmp_music_file | rawplay); } This is a very crude example (the syntax is probably incorrect also but hopefully you can tell what I'm trying to accomplish) of something that would be implemented in my program. Now this might work (though I haven't had time to get it to work yet). I just know there's got to be a better way than this workaround. This was the way I had it before: my $i = /mnt/disk/sound/high_quality/how_now_brown_cow_ain\'t_happening.flac system qq(flac -c -d $i | rawplay); And it would output something like flac can't play "/mnt/disk/sound/high_quality/how_now_brown_cow_ain'". which basically skips the file, and makes my program useless for these files unless I (or the user) renames their files. And yes I know ain't ain't a word =) thanks in advance shawn fogle p.s. maybe a regexp to substitute would work...something like s/[']/[\']/g but it doesn't seem to work..anyone? -----Original Message----- From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz] Sent: Monday, October 21, 2002 11:50 PM To: [EMAIL PROTECTED] Subject: Re: Using non-standard characters... From: Fogle Cpl Shawn B <[EMAIL PROTECTED]> > I'm having a little problem with some of my filenames that have ' in > them (I would enclose it in quotes but that would probably confuse > things). And it never makes it beyond that point in the filename when > running the script. I have thought of makeing a link to a temp file > with a better name (something simple like /tmp/npntemp) using regexps. > But, maybe I'm not thinking of all the possibilities here, but I know > using the ' character is not a problem on the shell, as I can just > type the command on the shell and it works fine. You forgot to tell us WHAT problem do you have with those files. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]