in reply to how to read the yahoo Inbox mail using www::Mechanize module?

sub loginyahoomail() {
Don't put those parentheses in there. Prototypes are bad, mmkay?

Also, you're probably calling your functions in the "wrong" way (with the &) if Perl is letting you call that sub with the two arguments it is expecting.