justkar4u has asked for the wisdom of the Perl Monks concerning the following question:
The output is missing,bad To be more clear on what I am trying to do, I would like to extract one value out of "missing,bad" if a particular condition is true. I am planning to parse it for the , delimiter and then store the prefix or suffix(which i believe is too clumsy). I wanted to know if there is a better way of doing this/suggestions ?. - Thanks Rammy %table= ( "optimal", "good", "failed", "missing,bad"); print $table{failed};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Having multiple values for a Hash key
by wind (Priest) on Apr 30, 2011 at 01:23 UTC | |
by justkar4u (Novice) on May 02, 2011 at 17:17 UTC | |
|
Re: Having multiple values for a Hash key
by Anonymous Monk on Apr 30, 2011 at 01:27 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |