
davorg
Thaumaturge
/ Moderator
Nov 1, 2004, 10:38 AM
Post #2 of 2
(1041 views)
|
|
Re: [yatinhat] remove all non numbers from a list
[In reply to]
|
Can't Post
|
|
This is a case where you need "grep" not "map".
@nonnum = grep /\D/, qw(one 2 3 four 5 6 7 8 nine); print "@nonnum\n"; -- Dave Cross, Perl Hacker, Trainer and Writer http://www.dave.org.uk/ Get more help at Perl Monks
|