I've been tasked to convert some Perl code that previously ran in a linux environment to ActivePerl in a Windows environment. I am very new to Perl. My issue is a previous commmand returning multiple lines to a variable was similar to:
my @progname_output = `progname l`;
Now this command when run from a windows cmd needs to run after a batch file is run to set some environment variables. So, in a cmd prompt I would need to run
>set_env_hab.bat
>progname l
to get my output.
Any advice on how to run the .bat file so that my variable gets the returned data of the program?
Thanks!