Re: Why the do statement generate error?

Bill Moseley (moseley@hank.org)
Wed, 20 Dec 2000 12:08:51 -0800


At 09:58 PM 12/19/00 +0300, Ivan C Myrvold wrote:
>The code snippet I got a couple of days ago was really great, but I still
have some problem with it. It generates an error:
>
>my $response = do {
>	my $handle = IO::File->new(">tvschedule.html");
>	$ua->request(HTTP::Request->new(GET=>$url),sub{ print $handle $_[0];
$p->parse($_[0]);});
>}

do {
  ...
};
 ^



Bill Moseley
mailto:moseley@hank.org