links returns an array of objects of type WWW::Mechanize::Link, not an array of strings. Perhaps you want:
print $_->url(), "\n" foreach $mech->links();
In reply to Re^3: how to open page and follow link
by ikegami
in thread how to open page and follow link
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |