--- w: bar --- w: - bar - bar #### 'foo' =~ /(?\w+)/ && 'foofoo' =~ /\g{w}\g{w}/; #### 'oo' =~ /(?\w+)/ && 'oo' =~ /\g{w}\g{w}/; #### %+ = ( w => 'oo'); %- = ( w => ['oo']); #### 'oo' =~ /(?\w+)/ && 'oo' =~ /(?\g{w}\g{w})/; # Which I *think* is possible! #### %+ = ( w => undef); # or not existing at all? I'm half hearted... %- = ( w => []);