[ABE.pm] backticking problem
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
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?
Linux New Jersey, Inc.
More information about the ABE-pm