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

Re: [PBML] How to pass input values in command line

Expand Messages
  • merlyn@stonehenge.com
    ... KalyanRaj chomp($a = $ARGV[0]); # holds value 5 KalyanRaj chomp($b = $ARGV[1]); # holds value 6 The arguments on the command-line are typically not
    Message 1 of 4 , Apr 25, 2006
      >>>>> "KalyanRaj" == KalyanRaj <kalyanrajs@...> writes:


      KalyanRaj> chomp($a = $ARGV[0]); # holds value 5
      KalyanRaj> chomp($b = $ARGV[1]); # holds value 6

      The arguments on the command-line are typically not ending in newline, so you
      shoudln't chomp them in the same way you chomp reading from a filehandle.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.