Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Array Filter and Lookahead

by CountZero (Bishop)
on Nov 20, 2012 at 20:13 UTC ( #1004788=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    my @test = (
    ...
    for (@test) {
        say "$_: $1" if /(\d+)\.?\d*?\D*?$/;
    }
    
  2. or download this
    text text text 1 text: 1
    1 text text text 2 text 3: 3
    text 1 text text 2 text: 2
    text text text 1 text 2 3.0: 3
    1 2 3 4 5 6 7 8 9 10 11: 11
    text text 4.5 text text: 4
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2016-06-29 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (385 votes). Check out past polls.