Re: Pseudo-hashes are deprecated



Harry Bennett wrote:
I am using this line:

foreach my $pair (keys %{$config{server}}) {
.....
}

but get the warning:

Pseudo-hashes are deprecated at ......

I am using the example from 'Programming Perl (third edition)' Section 9.4.3

I guess my ultimate question would be, what have they been deprecated to?
And an example would be GREATLY appreciated.

See the "Pseudo-hashes: Using an array as a hash" section from:

perldoc perlref

And also:

perldoc fields



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.



Relevant Pages

  • Re: Pseudo-hashes are deprecated
    ... Paul Lalli wrote: ... but get the warning: ... Pseudo-hashes are deprecated at ...... ... I am using the example from 'Programming Perl ' Section 9.4.3 ...
    (perl.beginners)
  • Re: Pseudo-hashes are deprecated
    ... but get the warning: ... Pseudo-hashes are deprecated at ...... ... I am using the example from 'Programming Perl ' Section 9.4..3 ... Paul Lalli ...
    (perl.beginners)
  • Pseudo-hashes are deprecated
    ... but get the warning: ... Pseudo-hashes are deprecated at ...... ... I am using the example from 'Programming Perl ' Section 9.4.3 ... I guess my ultimate question would be, what have they been deprecated to? ...
    (perl.beginners)
  • Re: Pseudo-hashes are deprecated
    ... Pseudo-hashes are deprecated at ...... ... I am using the example from 'Programming Perl ' Section 9.4.3 ... I guess my ultimate question would be, what have they been deprecated to? ... You wanted just the hashref there. ...
    (perl.beginners)