Subject: | save_content |
Date: | Mon, 6 Nov 2006 05:43:49 -0800 (PST) |
To: | bug-WWW-Mechanize [...] rt.cpan.org |
From: | "Richard J. Balbat" <rbalbat [...] yahoo.com> |
Hello,
I have been using the WWW-Mechanize module for over a year now. I recently had problems with my machine, so I re-imaged it and downloaded WWW-Mechanize again from CPAN.ORG. There appears to be a problem, in particular with the save_content method, with the latest version of Mechanize. I use the following line of code in my Perl script to save markup to the local file system.
$mech->save_content( $filename ); # Save the top-level source document to the local F/S
I get the following error. Is this a known issue?
BR,
Richard
Can't locate object method "save_content" via package "WWW::Mechanize" at
C:\spider\capture_content.pl line 143, <STDIN> line 5 (#1)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.
Uncaught exception from user code:
Can't locate object method "save_content" via package "WWW::Mechanize" a
t C:\spider\capture_content.pl line 143, <STDIN> line 5.
at C:\spider\capture_content.pl line 143
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.