
soeeom
New User
Jul 4, 2011, 1:03 PM
Post #1 of 2
(639 views)
|
|
help with obtimizing
|
Can't Post
|
|
Hi guys, I'm trying to write some code that extracts all words beginning with an "@" and place them into an array, i've done this and it works fine:
push @text,map(/(?<!\w)@\w+/g, @words); but i need to to weed out replicas, i can do this easily with extra lines of code but i need to keep the code as small as possible, i know perl is very good at this so i was wondering if i could do this in a kinda obtimized 1 liner?
|