my $obj = Some::Class->new( @args ); my $method = "sub_${x}_text_${y}"; my $rv = $obj->$method( @params );