Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Array manipulation

by l.frankline (Hermit)
on May 30, 2006 at 06:59 UTC ( [id://552418]=note: print w/replies, xml ) Need Help??


in reply to Array manipulation

hi,

try the below code...

@arr = qw/x101032 x101822 x101209 x102292 x101302 x102938 x102943 x101 +289/; @new = grep /^x102/,@arr; print "@new\n";

Output is:

x102292 x102938 x102943

regards,
Franklin

Don't put off till tomorrow, what you can do today.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552418]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found