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: Advanced:
change directory

 



YAYABRUCE
Novice

Jul 19, 2007, 10:41 AM

Post #1 of 2 (990 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


PGScooter
stranger

Jul 19, 2007, 5:59 PM

Post #2 of 2 (987 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:


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


http://cpan.uwinnipeg.ca/htdocs/File-chdir/File/chdir.html



Quote
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