ramblinpeck has asked for the wisdom of the Perl Monks concerning the following question:
I've tried putting \& in front of downloader->fetch, as well as putting it in front of fetch itself, but no luck. Right now its just executing the fetch function in downloader and generating an error : thread failed to start: Undefined subroutine &main::http://www.webaddress.com called Any help appreciated.my $downloader = eval { new Downloader();} or die (@_); my $thread1 = threads->new($downloader->fetch, "http://www.webaddress.com", \%siteHash); $thread1->join;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Object Functions and Threading
by ikegami (Patriarch) on Jan 30, 2006 at 19:20 UTC | |
by ramblinpeck (Sexton) on Jan 30, 2006 at 19:26 UTC | |
by BrowserUk (Patriarch) on Jan 30, 2006 at 20:24 UTC | |
|
Re: Object Functions and Threading
by renodino (Curate) on Jan 30, 2006 at 20:14 UTC |