So I'm trying to do a
dir on a particularly folder, but something simple as this is requiring me to use a batch file rather than doing it in PERL itself.
For example, if I do this:
- system ("cd N:/Temp");
-
system ("dir >JAVA.txt");
it doesn't work, because each
system call is a separate session. This means the dir is called on the working directory. This is obviously not what I want. Therefore I'm resorting to use a batch file and calling it, which seems like a horrible way to do it. Is there some way to do this in Perl only, without the use of a batch file?