How do I use Perl's chdir operator?

Posted by T. Gruhn on Stack Overflow See other posts from Stack Overflow or by T. Gruhn
Published on 2010-03-29T11:31:03Z Indexed on 2010/03/29 20:03 UTC
Read the original article Hit count: 201

Filed under:
|

In ksh, I'd use

cd /usr/src/sys

How should I write it in Perl? A conversion such as

cd /usr/src/sys ---> chdir '/usr/src/sys'

Maybe the following would be better:

execute "chdir '/usr/src/sys' "

© Stack Overflow or respective owner

Related posts about perl

Related posts about chdir