TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:18790] quick way to strip spaces...



> However, I'm wondering if you could explain this bit for me...
> 
> {$x=$_; 

Set (new) variable $x to be $_, which is special variable which contains
the default input and pattern-searching string.

> s/\s+/_/g; 

substitute any number of whitespaces with a single char, "_".

> rename $x, $_;}

rename the file which name matches $x to the stuff in $_ .

> Better yet, if you could point me in the right direction as to where to look
> for this solution on my own, I'd be happy to go digging....I'm afraid perl
> is not yet part of my toolchest...

www.ora.com!


Andy

> 
> Thanks
> 
> Brian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-list-help@mn-linux.org
>