I have the below program written but If I run the program . I get the following error message
Can't call method "value" on an undefined value at C:/Perl/site/lib/Win32/IE/Mec
hanize.pm line 900.
Please let me know your inputs on the same
Expand|Select|Wrap|Line Numbers
- #!c:\perl\bin\perl.exe
- use strict;
- use HTTP::Cookies;
- use LWP::debug qw(+);
- use Win32::IE::Mechanize;
- my $outfile = "out.htm";
- my $url = "http://www.mindsrc.com/index.php?id=careers_submit";
- my $mech= Win32::IE::Mechanize->new();
- $mech->get($url);
- sleep 10;
- $mech->form_name("subapp");
- my $f = "14232";
- my $l = "6847";
- sleep 5 ;
- $mech->field(first => $f);
- $mech->click();
- #use LWP::debug qw(+);
- my $output_page = $mech->content;
- open(OUTFILE, ">$outfile");
- print OUTFILE "$output_page";
- print $output_page;
- close(OUTFILE);
Kindly guide me how can I get over this issue.
Mithun