Hi all, im new in perl :P so i would like to ask a stupid question ( no its not stupid if you are noob :D ) so here it is ... i would like to execute two commands ( about the health of hard drive ) the first command is "wmic" and that command is opening new line ( or something like telnet try it ) after that i have to execute the "diskdrive get status" so i can get the results and i like to write that result in variable so for now i have this code but i get error on the second system command it cant be execute. Any help or solution ....
use strict;
use warnings;
use diagnostics;
system ('wmic');
system ('diskdrive get status');