Subject: | field() failure |
method "field" seems to be broken in 1.08, and Perl 5.8.5 on SUSE Linux 2.6.8-24.10-default.
$mech‐>field( $name, $value );
Error:
Can't call method "value" on an undefined value at /usr/lib/perl5/site_perl/5.8.5/WWW/Mechanize.pm line 1033.
In other parts of my code, I call method "fields," but here I needed the option of leaving off unused field with an if statement.
This is the actual line that breaks the module:
$mech->field("album_name", "$album_name");
$album_name is correctly defined.
Let me know if there is anything else I can send to clear things up.... or tell me what stupid thing I did wrong that I'm not seeing.
Thanks,
havoc