BÁRTHÁZI András wrote:
Hi,

Can you help me, how ignore case is working on Perl 5 regexps?

  my $test = 'test';
  $test ~~ s:perl5:i/E/OA/;

It gives me an error (replacing :i with :g, or just removing :i it works well).

Until :i is implemented, you can use

    my $test = 'test';
    $test ~~ s:perl5/(?i)E/OA/;

(?...) is standard perl5-way to place these flags into regexp.

--
Markus Laire
<Jam. 1:5-6>

Reply via email to