use strict;
use warnings;
print "First Argument: $ARGV[0]";
print "\n********************\n";
print "Second Argument: $ARGV[1]";
and i save the code in a file test.pl
Try & execute this with quotes(") & slash(\) seperated with a space to get the desired output.

Use as below:-

perl test.pl "D:\First Folder\test\ " "D:\Second Folder"