I'm betting there's a newline on the end of $mpath. Since newline is a valid character within (and therefore at the end of) a path, the chdir() function cannot ignore it, and will look for a path that ends in newline, which you probably don't have.$mpath = `/vobs/package134/inttools/modules/unixtools/srce/whichPat +h $m`; ... if(! chdir($mpath)){
Consider a chomp on $mpath.
-- Randal L. Schwartz, Perl hacker
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
In reply to Re: chdir in perl
by merlyn
in thread chdir in perl
by raghvens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |