How do I tell Perl to execute a piece of generated perl code?

Posted by T. Gruhn on Stack Overflow See other posts from Stack Overflow or by T. Gruhn
Published on 2010-03-29T16:25:53Z Indexed on 2010/03/29 16:33 UTC
Read the original article Hit count: 395

Filed under:
|
|
|
|

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...

© Stack Overflow or respective owner

Related posts about ksh

Related posts about converting