in reply to chdir not working
if ( -d '/vob/ios/sys/obj-ppc-c3750') { chdir("/vob/ios/sys/obj-ppc-c3750"); } else { print "/vob/ios/sys/obj-ppc-c3750 does not exist\n"; }
You don't need all those chomps either. They are only necessary if the string contains a newline in the end - not the case for $ARGV[0] or for the other assignments.
you create and print $path, then you chdir to somewhere else. Is that intended? What is $path good for then?
Regards,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: chdir not working
by amitrajvarma (Initiate) on Oct 07, 2007 at 14:24 UTC |