in reply to relaying arguments using system call

C:\>type test.pl #!/usr/bin/perl # test.pl my $prog = 'receive.pl'; my $user = 'foo'; my $pass = 'bar'; system( $prog, $user, $pass ) && die "system failed $?"; print "Did system( $prog, $user, $pass ) OK"; exit 0; C:\>type receive.pl #!/usr/bin/perl # receive.pl print "I am recieving, got: @ARGV\n\n"; exit 0; C:\>receive.pl arg1 arg2 arg3 blah I am recieving, got: arg1 arg2 arg3 blah C:\>test.pl I am recieving, got: foo bar Did system( receive.pl, foo, bar ) OK C:\>

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: relaying arguments using system call
by jonnyfolk (Vicar) on Mar 21, 2003 at 00:19 UTC
    Much obliged, tachyon. I'm still not sure what's up but I'll build upon what you've shown me there and find out.

    Cheers!