[ale] Perl quickie
Yu, Jerry
jerry.yu at Voicecom.com
Fri Jan 16 11:27:36 EST 2004
$dir =~ s/\ //g; should remove space just fine.
$dir shouldn't be declared again. actually it will cause complie-time error.
-----Original Message-----
From: Chris Fowler [mailto:cfowler at outpostsentinel.com]
Sent: Friday, January 16, 2004 11:18 AM
To: ale at ale.org
Subject: [ale] Perl quickie
I'm trying to remove all spaces in a string.
my $dir = $tag->{GENRE}."/".$info->{ARTIST}."/".$info->{ALBUM};
my $dir =~ (s/\ /\_/g);
print $dir."\n";
What is the right way to do it?
Thx,
Chris
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ale
mailing list