$ perl -wE 'my $re = qr{A}g' Unknown regexp modifier "/g" at -e line 1, near "= " Execution of -e aborted due to compilation errors.