Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      , (qr{a} eq '(?-xism:a)'?'true':'false'), "\n";
    print "comparing variables: regex eq $s (string): "
      , ($s eq $re?'true':'false'), "\n";
    
  2. or download this
    -------Type------------
    ref (?-xism:a) (regex) is 'Regexp': true
    ...
    -------Equality--------
    comparing literals: qr{a} eq '(?-xism:a)': true
    comparing variables: regex eq (?-xism:a) (string): true