Siemka,
potrzebuję zrobić upload pliku z Windows na serwer www.
Na Linuxie chodzi bez problemu,
W Strawberry wywala mi:
Kod:
Can't call method "value" on an undefined value at
D:/Strawberry/perl/vendor/lib/WWW/Mechanize.pm line 1442 (#1)
(F) You used the syntax of a method call, but the slot filled by the
object reference or package name contains an undefined value. Something
like this will reproduce the error:
$BADREF = undef;
process $BADREF 1,2,3;
$BADREF->process(1,2,3);
Uncaught exception from user code:
Can't call method "value" on an undefined value at D:/Strawberry/perl/vendor/lib/WWW/Mechanize.pm line 1442
.
WWW::Mechanize::field(WWW::Mechanize=HASH(0x13bfd24), "login", "PM") called at C:\Documents and Settings\pm
\Pulpit\workflow\serwus\serwus.pl line 23
Kod php:
.....
my $username = 'PM';
.....
$mech -> field ('login' => $username);
.....
I o co chodzi?
I zastanawiam się czy w ActivePerl pójdzie..,
pzdr
EDIT:
Poszło w ActivePerl ok, ale jak ktoś wie w czym rzecz to niech się podzieli