in reply to Re: need help to passing argument to executable and get return the result
in thread need help to passing argument to executable and get return the result

see the CGI manual, the example are really good!!

LuCa
  • Comment on Re^2: need help to passing argument to executable and get return the result

Replies are listed 'Best First'.
Re^3: need help to passing argument to executable and get return the result
by ashwani (Initiate) on Aug 19, 2006 at 12:35 UTC
    Thanks luca..
    now tell me can i do this
    my $q=$ARGV[0]; my $offset=$ARGV[1];

    if i'm passing two arguments

    Thanks

      Good heavens no! Good thing you didn't try that code to see what it would do! I mean if you'd actually tried running the code to see what might happen you could have ripped a hole in the space-time continuum sending the entire Lesser Magellanic Cloud off into the 11th dimension.

      Or maybe you'd have just gotten an error. Or it might have worked the way the documentation you should have read would indicate. Who knows.

      Well, not you of course since you didn't try it.

      yep, thats one way!
      But this will probably work too
      my ($q, $offset) = @ARGV ;
      But be careful testing your code using my previous example as already mentioned by Fletch :)