sub visitLink { $mech->get( $Zeilen[0]); #hier möchte ich nun den button clicken my $page_content = $mech->content(); open(file, ">t.html"); print file $page_content; close (file); }