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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
change directory



Jul 19, 2007, 10:41 AM

Post #1 of 2 (1888 views)
change directory Can't Post

I am a new Perl Programmer and I need help with changing from C:\ DRIVE TO the network drive which is M:\

Any comment will help. I am writing a script that has clearcase command in it. Also, all the files are on the M:\ drive . I have tried DIR, CHDIR and it is not working. Please help


Jul 19, 2007, 5:59 PM

Post #2 of 2 (1885 views)
Re: [YAYABRUCE] change directory [In reply to] Can't Post

I don't know why chdir() would not work. Maybe you should post your code. It could be a different problem. Otherwise, you might want to give this a try:

File::chdir - a more sensible way to change directories

Perl's chdir() has the unfortunate problem of being very, very, very global. If any part of your program calls chdir() or if any library you use calls chdir(), it changes the current working directory for the whole program.

The more you teach me, the more I learn. The more I learn, the more I teach.


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

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