Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Array Filter and Lookahead

by daugh016 (Initiate)
on Nov 20, 2012 at 17:10 UTC ( #1004756=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $test_str = "1 text text text 2 text 3 ";
    my $test_out = q{};
    ...
    }
    
    print "\$test_out\n" . $test_out . "\n";
    
  2. or download this
    foreach (@test) {
      @test_filtered=grep{/^(([0-9]+)(?![^0-9]*[0-9]))/xsm} @test; 
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-12-28 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls