jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
update: So I only would like to ignore the 'le' keys!!#! /usr/bin/perl $a = { aa => 'b', bb => 'd', le1 => 'sad', le2 => 'ss' } ; ($c->{$_}) = grep { ! /le/, $a->{$_} } keys %$a ; foreach (keys %$c) { print "key=$_ et val=$c->{$_}\n" ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: create hash using grep
by borisz (Canon) on Feb 21, 2006 at 12:29 UTC | |
by jeanluca (Deacon) on Feb 21, 2006 at 12:33 UTC | |
by borisz (Canon) on Feb 21, 2006 at 12:40 UTC | |
by jeanluca (Deacon) on Feb 21, 2006 at 13:20 UTC | |
by davorg (Chancellor) on Feb 21, 2006 at 13:47 UTC | |
by Corion (Patriarch) on Feb 21, 2006 at 13:22 UTC | |
|
Re: create hash using grep
by davorg (Chancellor) on Feb 21, 2006 at 12:31 UTC | |
|
Re: create hash using grep
by mickeyn (Priest) on Feb 21, 2006 at 13:04 UTC | |
by jeanluca (Deacon) on Feb 21, 2006 at 13:27 UTC |