Help for this page

Select Code to Download


  1. or download this
    my $qr=qr/^normal$/;
    my $bqr=bless qr/^blessed$/,"Foo";
    print "Normal : $qr\n";
    print "Blessed: $bqr\n";
    
  2. or download this
    Normal : (?-xism:^normal$)
    Blessed: Foo=SCALAR(0x1acf020)
    
  3. or download this
    SV *
    regexp(sv)
    ...
        /* 'twould appear it aint a regex, so return undef/empty list */
        XSRETURN_UNDEF;
    }
    
  4. or download this
    my $qr=qr/^foo$/;
    while (length $qr < 1000) {
        print "$qr\n";
        $qr=eval "qr/$qr/" or die $@;
    }
    
  5. or download this
    (?-xism:^foo$)
    (?-xism:(?-xism:^foo$))
    ...
    (?-xism:(?-xism:(?-xism:(?-xism:(?-xism:^foo$)))))
    (?-xism:(?-xism:(?-xism:(?-xism:(?-xism:(?-xism:^foo$))))))
    ...