Help for this page

Select Code to Download


  1. or download this
    $ perl -Mre=debug -e " $f=q{a??q}; $f =~ m{\Qa??\E}; "
    Compiling REx "a\?\?"
    Final program:
    ...
    Guessed: match at offset 0
    Freeing REx: "a\?\?"
    
  2. or download this
    $ perl -le " print qr{\Qa??\E}; "
    (?^:a\?\?)
    
  3. or download this
    $ perl -le " print qr'\Qa??\E'; "
    (?^:\Qa??\E)
    
  4. or download this
    $ perl -Mre=debug -e " $f=q{a??q}; $f =~ m'\Qa??\E'; "
    Compiling REx "\Qa??\E"
    ...
    Did not find floating substr "E"...
    Match rejected by optimizer
    Freeing REx: "\Qa??\E"