Using ARGV in Perl
Hi All,
I am new to this Forum.
Below is my perl script:
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
When I execute this with arguments
perl test.pl "D:\First Folder\test\" "D:\Second Folder"
The Output shown was:
First Argument: D:\First Folder\test" D:\Second
********************
Second Argument: Folder
The Output what I expect is:
First Argument: D:\First Folder\test
********************
Second Argument: D:\Second Folder
Is there any idea to get the output what i expect, without changing Backward slashes to Forward slashes or Deleting the Final slash in First argument
Thanks in Advance
Freedolen
|