my $dir=system(dir); [download]
system returns an error number, not a text string from the command run.
In reply to Re^2: find CD drive letter by jwkrahn in thread find CD drive letter by Baphi