If you mean can I get only the filename, yes. You could use File::Basename or use something like this:
$filename = '/a/b/c/d/e/song.mp3'; # hold your fully qualified f $filename =~ s/^.+[\\\/]//; # now holds song.mp3 I use this for display purposes of the script being executed, but I don't need to see: a/b/c/d/f/g/file.pl but only file.pl There are number of ways, but here is a start if I understand you correctly. Wags ;) -----Original Message----- From: KeN ClarK [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 11:01 To: [EMAIL PROTECTED] Subject: capture song title I want to capture the title of the current song I have running on my box through mpg123 and redirect it to a file. In this process, I don't want the /long/path/to/song but just the song.mp3. Is it possible to capture the song title this way? Ken _____________________ [EMAIL PROTECTED] http://quantifier.org _____________________ Hear that... bookstores will soon be stocking a volume called "The Unsensuous Census Taker"? It's about a guy who comes once every ten years. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]