in reply to Idiom for setting variables to empty string if capture is undefined?

$_ //='' for my ($c, $d, $e, $f) = 'abcd' =~ /(w)(x)(y)(z)/; print $c, $d, $e, $f;

How's this for an idiom ?

  • Comment on Re: Idiom for setting variables to empty string if capture is undefined?
  • Download Code