Help for this page

Select Code to Download


  1. or download this
      $a = ("ac" =~ /a(b)c/) ? $1 : 'd';
      print $a;
    
  2. or download this
      $a = ("abc" =~ /a(b)c/)[0] || 'd';
      print $a;