On Aug 1, Jennifer Pan said:

>$URL1= "http://blablabla";;
>$command="/opt/sfw/bin/wget -nv -O @list $URL1";
>system "$command";
>print @list;

A program cannot save to a variable.  Programs save to file streams or
devices or whatever else is around.  But not variables.

You need to capture the output of the program:

  $output = qx(/opt/sfw/bin/wget -nv $URL1);

But that doesn't look terribly safe... I could put something in $URL1 that
would ruin your day.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to