Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Grep and LWP
Hi,
I am working through Perl and LWP by O'Reilly and I am having troubles with this.
I hadn't come across grep before so I did some research and the syntax for searching arrays but not web files. How do I do this?
EDIT: This is my code:
use strict;
use warnings;
use LWP::Simple;
getprint('http://cpan.org/RECENT') || die;
grep(/Apache/);```
What do you want to do? Idk much about perl, but grep is a program (and as far as I know) not a command in perl.
| is a pipe, it puts output from 1 command and feeds it into another.
markupperl -MLWP::Simple -e "getprint('http://cpan.org/RECENT')||die"
That -e runs the perl code in the "'s. The output is then piped into grep which is set to search for 'Apache'.