in reply to Re^2: 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

Thanks luca..
now tell me can i do this
my $q=$ARGV[0]; my $offset=$ARGV[1];

if i'm passing two arguments

Thanks
  • Comment on Re^3: need help to passing argument to executable and get return the result
  • Download Code

Replies are listed 'Best First'.
Re^4: need help to passing argument to executable and get return the result
by Fletch (Bishop) on Aug 19, 2006 at 13:19 UTC

    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.

Re^4: need help to passing argument to executable and get return the result
by jeanluca (Deacon) on Aug 19, 2006 at 14:26 UTC
    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 :)