title: Perl Ternary statement with regex as one of its results
body: <p>I currently have the following code:</p>
  
  <pre><code>my $class = $rs-&gt;{'CLS_ID'};
  $class =~ s/^C\S{1,3}\s+// if ($transform);
  </code></pre>
  
  <p>This works fine, but I was wondering if those 2 statements could be combined into a single ternary expression?</p>