in reply to telnet waitfor command

Yes. Read the Net::Telnet documentation. ->waitfor() takes a string that is a valid regular expression, not file wildcards.