littlemonk has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I am new to this Forum. Below is my perl script:
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 Advanceuse strict; use warnings; print "First Argument: $ARGV[0]"; print "\n********************\n"; print "Second Argument: $ARGV[1]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command line
by Marshall (Canon) on Aug 08, 2011 at 10:28 UTC | |
|
Re: Command line
by Utilitarian (Vicar) on Aug 08, 2011 at 10:14 UTC |