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: Re: [sg3] rename file after script finishes : Edit Log



Laurent_R
Veteran / Moderator

Jan 29, 2013, 5:51 AM


Views: 484
Re: [sg3] rename file after script finishes

Just try this:


Code
rename $old_name, $new_name;


If you wrote to the file, make sure your file is closed before doing this.


(This post was edited by Laurent_R on Jan 29, 2013, 5:52 AM)


Edit Log:
Post edited by Laurent_R (Veteran) on Jan 29, 2013, 5:52 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