Help for this page

Select Code to Download


  1. or download this
    sub blessed_regex{ return bless qr/[a-z]/,'foo' }
    
  2. or download this
    sub blessed_regex{ return bless \qr/[a-z]/,'foo' }
    
  3. or download this
    use strict;
    use warnings;
    ...
    Bless:    foo=SCALAR(0x1a7ef64):    ---
    Rex  :    $VAR1 = qr/(?-xism:[A-Z]o[A-Z])/;
    Bless:    $VAR1 = bless( do{\(my $o = undef)}, 'foo' );
    
  4. or download this
     
    bless \"foo","foo"
    
  5. or download this
    bless qr/somepattern/,"foo";