As I posted in LWP: Downloading First 2KB of an HTML File:
my $data; my $res = $ua->request( $req, sub { $data = shift; die }, 5120 );
Note that $res->content will be empty.
Makeshifts last the longest.
In reply to Re: LWP Byte Limit
by Aristotle
in thread LWP Byte Limit
by vbrtrmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |