$tmp =~ m/(.+)(\d+)$/; ${$1} = $2; #### $ perl -e 'do() || ! do() ;' Undefined subroutine &main::try