I would agree that the new "Hash::Util::lock_keys()" is a
neater approch (pg++), but I didn't see anything in the perl 5.8
man page for "fields" to indicate that it was being
depricated -- so where did you hear that it is "obsoleted"?
(Just curious. I'm sure this pragma has been used by many
who were not so offended by it as you seem to be, and they'd
want to know...) | [reply] |
I don't know how reliable this source is:
Pseudo hashes will die, but it's not the first time i have heard
this news:
Pseudo hashes (the strange things that appeared with
the compiler in in 5.005-or-so) will die. They're
depreciated in 5.8, and will be gone from 5.10, because
they slow down all hashes and all arrays (by about 15%,
Schwern calculates). The functionality which currently is
implemented with pseudo-hashes (fields.pm) will remain,
probably using the new restricted hashes.
jeffa
mmmmm ... restricted hashes | [reply] |
It is true that pseudo-hash is now deprecated in Perl 5.8 and will be removed in perl 5.10, and this is stated in perlref coming with 5.8.0. (search for pseudo-hash in perlref)
However the "use fields" pragmas is still there, and will be there for (at least) a while, but likely will point to a different implementation.
Update:
Some monks may not have 5.8 downloaded, let me just add a link to the online version of 5.8 perlref
| [reply] |
| [reply] |
| [reply] [d/l] [select] |