I am trying to catch the string "cd /a/b/c" and do the following conversion
(as part of a larger perl program).
If "cd /a/b/c" exists then convert"
cd /a/b/c -- chdir '/a/b/c'
execute "chdir '/a/b/c' "
I can do the conversion; I cant tell PERL to execute my PERL command...
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' "