Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: need an array ref from grep

by monkey_boy (Priest)
on Jun 16, 2006 at 15:04 UTC ( #555808=note: print w/replies, xml ) Need Help??


in reply to need an array ref from grep

Small change needed, use the anonymous array syntax:
my %h = ( 'a1' => 1, '001' => 1, '993' => 1, 'd' => 1, 'i' => 1) ; my $arr_ref = [(grep ( /[[:alpha:]]/, (keys(%h)) ))] ;



This is not a Signature...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://555808]
help
Chatterbox?
Lady_Aleena goes to read, may take a bit.
[Lady_Aleena]: Um, okay...
[karlgoethebier]: Lady_Aleena see also the source code of Shell

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-06-26 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (574 votes). Check out past polls.