Example:
I run a perl script from my c:\
the command I want to run is first change directory from C:\ to z:
then in Z: I want to run the dir command and performs some more commands (example findstr) and send output to a file.
Next I want to cd in R:\ and so same as last step.
How can I make this happen in perl?