[ABE.pm] backticking problem
Faber Fedor
faber at linuxnj.com
Wed Nov 30 08:58:51 PST 2005
I'm trying to get Perl to read the output of some shell comands tht
involve pipes and I'm missing something basic.
I have this:
lynx -dump $url | grep 'S&P 500' | head -5 | head -1
which works correctly on the command line. When I put it in a PErl
script thusly
my $line = `lynx -dump $url | grep 'S&P 500' | head -5 | head -1`
I get the output of the lynx command or the equivalent of
my $line = `lynx -dump $url`
How do I get the proper output into $line? Or do I have to process the
lynx output separately inside of Perl?
--
Regards,
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701
http://www.linuxnj.com
More information about the ABE-pm
mailing list