Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Using regex to extract keys

by perlmonkey (Hermit)
on Sep 24, 2003 at 20:59 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found