in reply to Re: WWW::Mechanize help
in thread WWW::Mechanize help

I thought I explained that. $form_comments is passed to another Perl script along with other parameters. When you use: system ("submit.pl", ...$form_comments does it not push that variable into ARGV? ?

Replies are listed 'Best First'.
Re^3: WWW::Mechanize help
by moritz (Cardinal) on Aug 19, 2008 at 21:08 UTC
    There is no such limitation, if you do it right:
    $ cat foo.pl #!/usr/bin/perl use strict; use warnings; use Data::Dumper; if (@ARGV){ print Dumper \@ARGV; } else { system $^X, $0, "a\nb"; } __END__ $ perl foo.pl $VAR1 = [ 'a b' ];

    You can see that the script calls a copy of itself, and both lines of a\nb are passed correctly to the second copy (tested on Linux).

    Which makes me think that you're doing something wrong.