$mech->follow_link( text_contains=> '//a[text() = "Investment Detail"]' ); $mech->follow_link( url_regex => qr/InvestmentDetail.aspx/i ); $mech->follow_link( xpath => '//a[text() = "Investment Detail"]' ); $mech->follow_link( text => 'Investment Detail',n => 12 );