http://www.perlmonks.org?node_id=318228


in reply to Re: = rather than =~ ?
in thread = rather than =~ ?

my $foo = m/(foo)/ ? $1 : '';

cheers

tachyon