hans@hans-desktop ~ perl -MExpect -e 'print $Expect::VERSION ."\n";' 1.35 hans@hans-desktop ~ perl test.pl Match before : ##############################################################################\r\n# This system is a restricted access system. Match : # Match after : \r\n# If collected security information reveals possible criminal activity that #\r\n# exceeds privileges, evidence of such activity may be provided to the rele- #\r\n# vantauthorities for further action. By continuing past this point, you #\r\n# expressly consent to this security monitoring. #\r\n##############################################################################\r\n\r\nhostname: ~#