Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Getting Arguments using Command Line

Expand Messages
  • srini vasan
    The Following also not give me proper result. ... __________________________________________________________ Yahoo! India Answers: Share what you know. Learn
    Message 1 of 4 , Feb 2, 2007
    • 0 Attachment
      The Following also not give me proper result.


      --- Abdul <a22khan@...> wrote:

      > Run that like this --->
      >
      > perl test.pl 'D:\First Folder\test\' 'D:\Second
      > Folder'
      >
      > value the quotes :))
      >
      > srini vasan <ensrinivasan@...> wrote:
      > Hi All,
      >
      > Below is my perl script:
      >
      > use strict;
      > use warnings;
      >
      > print "First Argument: $ARGV[0]";
      > print "\n********************\n";
      > print "Second Argument: $ARGV[1]";
      >
      > 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
      >
      > My OS is Windows.
      >
      > Thanks in Advance
      > Srinivasan
      >
      >
      >
      >
      __________________________________________________________
      > Yahoo! India Answers: Share what you know. Learn
      > something new
      > http://in.answers.yahoo.com/
      >
      >
      >
      >
      >
      > ---------------------------------
      > Yahoo! Movies - Search movie info and celeb
      > profiles and photos.
      >
      > [Non-text portions of this message have been
      > removed]
      >
      >




      __________________________________________________________
      Yahoo! India Answers: Share what you know. Learn something new
      http://in.answers.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.