if (@kitties = $string =~ /pattern (with) captures/) { paw_at @kitties; } #### if ($string =~ /pattern (with) captures/) { paw_at $1; }