Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Passing variables into regular expressions

by johngg (Canon)
on Apr 20, 2006 at 13:02 UTC ( #544589=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my ($span_s) = $str =~ /(\d\d.*?\d\d)/s;
    print "\$span_s -- $span_s\n\n";
    
  2. or download this
    @digits -- 12 34 56 78
    
    ...
    
    $span_s -- 12c
    de34
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://544589]
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: (4)
As of 2022-10-01 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (3 votes). Check out past polls.

    Notices?