Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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


Comment on Re: Comparing 2 arrays but ignoring certain patterns
Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-09-30 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (364 votes), past polls