Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Using regex to extract keys

by perlmonkey (Hermit)
on Sep 24, 2003 at 20:59 UTC ( #294016=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $r = 44;
    my $hash = $self->{'residues'}{$modelCount};
    for my $key ( grep { /^\w$r$/ } keys %$hash ) {
        print $key."\n";
    }
    
  2. or download this
    my $r = 44;
    my $hash = $self->{'residues'}{$modelCount};
    ...
        next if $key =~ /^\w$r$/;
        print $key."\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-10-04 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (15 votes). Check out past polls.

    Notices?