POST-ing a file with WWW::Mechanize

"Peteris Krumins [Newsgroups]" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hello!

When POST-ing files with LWP I could usually specify the field as an 
array ref which looked like this:
/fieldname/ => [/local_filespec/ => /as_what_name/],

Now, I am trying to do the same with WWW::Mech and what I get is Mech 
dying with error:
/Can't call method "value" on an undefined value at WWW/Mechanize.pm 
line 1347./

Any ideas what to associate a field with to POST a file with 
'/as_what_name/' just like in the LWP case?

Using WWW::Mech version 1.30


Thanks,
P.Krumins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.