Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: need an array ref from grep

by davido (Cardinal)
on Jun 16, 2006 at 15:03 UTC ( [id://555806]=note: print w/replies, xml ) Need Help??


in reply to need an array ref from grep

Like this, perhaps:

my $arr_ref = [ grep( /[[:alpha:]]/, keys %h ) ];

The [...] brackets are used as an anonymous array constructor.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-16 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found