[Melbourne-pm] Weirdness with references

Alfie John alfiejohn at gmail.com
Wed Sep 6 18:01:52 PDT 2006


Hi (),

Could somebody please explain to me why the following die()s

    my %empty;
    print %{ $empty{'fake'} }

Yet, the following doesn't

    my %empty;
    print values %{ $empty{'fake'} }

I am thinking that values() flattens the given arguments in an eval?
If it does, why?

Alfie


More information about the Melbourne-pm mailing list