in reply to Calling variables from another file

No one can really help you unless you show us what is actually in your .CMD file. This is really just a DOS .BAT file so can contain any valid dos shell syntax. It is not immediately apparent why you should need to do this. More details please.

my $file = 'c:/file.cmd'; open F, $file or die "Can't read $file, perl says $!\n"; while(my $line = <F>){ # parse the line to get data } close F;

cheers

tachyon