Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-06-25 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (567 votes). Check out past polls.