Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Comparing 2 arrays but ignoring certain patterns

by muba (Priest)
on Jun 29, 2012 at 02:26 UTC ( #979031=note: print w/replies, xml ) Need Help??


in reply to Comparing 2 arrays but ignoring certain patterns

@testlist = map { s/:.+//; $_ } @testlist;   # Strip everything from the column onward

Replies are listed 'Best First'.
Re^2: Comparing 2 arrays but ignoring certain patterns
by hongping (Novice) on Jun 29, 2012 at 03:05 UTC
    but i want to have the :25:seed and :50:seed in my outputlist.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979031]
help
Chatterbox?
[marto]: good morning all
[prospect]: Good morning ! More Perl learning today, Man that subroutines chapter is tough.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-07-24 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (348 votes). Check out past polls.