pauldespre 0 Newbie Poster

I have this example:

use warnings;
use strict;
open LYNX, "lynx –source http://www.perl.com/ |" or die "Can't open lynx: $!";
# Define $_ and skip through LYNX until a line containing "standard.def"
$_ = "";
$_ = <LYNX> until /standard\.def/;
# The headline is in the following line:
my $head = <LYNX>;
# Extract "Headline" from "<A HREF=something>Headline</a>..."
$head =~ m|^<A HREF=[^>]+>(.*?)</a>|i;
print "Today's www.perl.com headline: $1\n";

When I run this script, it gave me this error:
LINES value must be >= 2: got 1
initscr(): LINES=1 COLS=1: too small.

I installed lynx on Windows 7, in C:\lynx_w32 and when I'm in C:\Perl\Book wich contain my script, if I try lynx –source http://www.perl.com it works fine. So ... what's the problem?