The content () method is sometimes more convenient:
$mech->content(...)
Returns the content that the fur uses internally for the last page. This is usually the same as $ mech-> response () → content (), but this can be different for HTML documents if "update_html" is overloaded and / or additional named arguments are passed to content ():
$mech->content( format => 'text' )
Returns the text version of the page, with all HTML markup torn. This function requires the installation of HTML :: TreeBuilder or a fatal error.
$mech->content( base_href => [$base_href|undef] )
HTML-, , . $base_href - $mech- > base(), . HTML, . HTML:: Display.