$ perl -we 'print pop (@matches = "hello awesome" =~ /(el).*(om)/);' Type of arg 1 to pop must be array (not list assignment) at -e line 1, near "/(el).*(om)/)" Execution of -e aborted due to compilation errors.