Help for this page

Select Code to Download


  1. or download this
    "Y" =~ /\u(?x: y)/
        or  die "\\u and (?x: ) don't cooperate";
    
  2. or download this
    /$foo bar[5]/x; # Not the same as /$foobar[5]/
    /\ u2/x;        # Not the same as /\u2/, obviously
    /\01 2/x;       # Not the same as /\012/
    /$hash{a Key}/x;# Not the same as /$hash{aKey}/
    
  3. or download this
    #!/usr/bin/perl -w
    my $x= " b c ";
    print for "abcd" =~ /$x/xg;
    # prints "bc"
    
  4. or download this
    print "($1)($2)\n"
        while  "fFFggGGGG" =~ /([a-z]+)\U(\1*)/g;
    ...
    (gg)()
    ---
    (gg)(G)