develooper Front page | perl.beginners | Postings from March 2010

Re: ':content_cb' give what to subroutine?

Thread Previous | Thread Next
From:
Peter Scott
Date:
March 13, 2010 05:51
Subject:
Re: ':content_cb' give what to subroutine?
Message ID:
20100313135027.21691.qmail@lists-nntp.develooper.com
On Fri, 12 Mar 2010 17:38:30 +0530, raphael() wrote:
> use WWW::Mechanize;
> my $b;
> $wmc->get(
> "$link",
> ':content_cb' => sub {
> 
> I got this snippet on perlmonks. It's a kind of progress bar. I want to
> know what is being passed to @_ by ':content_cb' ??

Look in the documentation for LWP::UserAgent.  WWW::Mechanize inherits 
from it.

-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/courses/perl1/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About