*What not just like below? As long as you have unique key, it would retain all the information.*
$ex_psc{"$excpsc"} = "$keyword";

$ex_psc{"$excpsc"} is superfluous because *all* hash keys are strings.

perldoc -q quoting

       What’s wrong with always quoting "$vars"?



John
Thank you John,

Also, can you explain why below is wrong?

Otherwise, besides slowing you down, you're going to break
    code when the thing in the scalar is actually neither a
    string nor a number, but a reference:

        func([EMAIL PROTECTED]);
        sub func {
            my $aref = shift;
            my $oref = "$aref";  # WRONG  <----- why is it wrong?
        }


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to