Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Identifying if a variable is the product of a qr//

by demerphq (Chancellor)
on Apr 25, 2002 at 09:49 UTC ( #161902=perlquestion: print w/ replies, xml ) Need Help??

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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://161902]
Approved by broquaint
Front-paged by giulienk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-07-10 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (213 votes), past polls