Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Array Filter and Lookahead

by daugh016 (Initiate)
on Nov 20, 2012 at 17:10 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-24 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found