In der Doku zu Mechanize finde ich unter
$mech->set_fields
Quote$mech->set_fields( $name => $value ... )
This method sets multiple fields of the current form. It takes a list of field name and value pairs. If there is more than one field with the same name, the first one found is set.
If you want to select which of the duplicate field to set, use a value which is an anonymous array which has the field value and its number as the 2 elements.
$mech->set_fields( $name => [ 'foo', 2 ] );
The fields are numbered from 1.
M.E. müsste dieses anonyme Array die Felder "theimage" füllen können.
Kombiniert mit dem Abschnitt
QuoteIf the field is of type file (file upload field), the value is always cleared to prevent remote sites from downloading your local files. To upload a file, specify its file name explicitly.
würde ich die Dateinamen einsetzen.
Edit: Link korrigiert
Last edited: 2010-10-21 17:27:21 +0200 (CEST)
10 print "Hallo"
20 goto 10