It should work unless the user you are using to run the script doesn't have the rights to chdir to that directory.
Ravindra Ugaji wrote: > Hi Monks, > I am trying the following code to change the directory > > chdir ( '/opt/application') || die ("Can't change directory: $!\n"); > tried this also > chdir "/opt/application" || die "Can't change directory: $!\n"; > > > But i am unable to change the directory to " /opt/application " from > present working directory > > I am using perl 5.6.1 built for sun4-solaris-64int and it wont support > "File::chdir " > can any one suggest the alternative solution for this problem? > > :-) > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/