Re: PERL problem....


Subject: Re: PERL problem....
From: sfalken (sfalken@citlink.net)
Date: Sun Mar 10 2002 - 09:49:52 MST


Actually, I got it figgered out, it's not perfect by any means, but it does
strip the characters I want, if anybody want's a copy of it (I don't know how
useful it'd be for anyone else) just lemme know.

                        --Shawn

On Sunday 10 March 2002 03:49, you wrote:
> On Sat, 9 Mar 2002, sfalken wrote:
> > from the filename (get it under 31 characters). I've got the script
> > doing that, but when I tel the script to mv $oldname $newname it's
> > bitching because of the whitespace, is there anyway to strip all of the
> > spaces out of the filenames before I start moving them about? or is
> > there another way to manipulate the filename that I'm missing?
>
> You'll probably need to put "s around the filenames, like this:
> mv "$oldname" "$newname"
>
> Perhaps you'll need to escape the "s out, too: mv \"$oldname\" etc..
>
> Else you can go:
>
> $oldname =~ s/\ //g;
>
> I think that should work.
>
> HTH,
>
> Tim



This archive was generated by hypermail 2a24 : Sun Mar 10 2002 - 09:51:07 MST