Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Can anyone tell me the meaning of the below expression.I just undertood that we are mapping from a file to a hashtable.But didnt understand the meaning of regular expression totally..Please help
chop (%key_hash = map { split /\s*[|]\s*/,$_,2 } grep (!/^$/,<KEY_FH>));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression
by Athanasius (Archbishop) on Oct 30, 2012 at 06:13 UTC | |
|
Re: Regular expression
by Kenosis (Priest) on Oct 30, 2012 at 06:26 UTC | |
|
Re: Regular expression
by Anonymous Monk on Oct 30, 2012 at 05:28 UTC | |
by Anonymous Monk on Oct 30, 2012 at 06:11 UTC | |
by Anonymous Monk on Oct 30, 2012 at 06:59 UTC |