CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
rename whole path

 



orange
User

Nov 5, 2015, 12:07 AM

Post #1 of 2 (1115 views)
rename whole path Can't Post

I have a problem in linux, long paths contain invalid directory names (latin1 instead of utf8). Is there an easy way to rename all the dirs from $path to encode ('utf8', $path ) ?
Thanks.


Zhris
Enthusiast

Nov 23, 2015, 11:49 AM

Post #2 of 2 (1047 views)
Re: [orange] rename whole path [In reply to] Can't Post

Hi,

Take a look at the from_to method of Encode.

Chris


(This post was edited by Zhris on Nov 23, 2015, 11:50 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives