Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: how to avoid mis-spelling hash keys?

by graff (Chancellor)
on Jan 05, 2003 at 18:46 UTC ( [id://224448]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: how to avoid mis-spelling hash keys?
in thread how to avoid mis-spelling hash keys?

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...)
  • Comment on Re: Re: Re: how to avoid mis-spelling hash keys?

Replies are listed 'Best First'.
(jeffa) 4Re: how to avoid mis-spelling hash keys?
by jeffa (Bishop) on Jan 05, 2003 at 18:53 UTC
    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
Re: Re: Re: Re: how to avoid mis-spelling hash keys?
by pg (Canon) on Jan 05, 2003 at 19:20 UTC
    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
Re: Re: Re: Re: how to avoid mis-spelling hash keys?
by janx (Monk) on Jan 05, 2003 at 19:00 UTC
    I'm not sure what really happened to this discussion (it's quite long ago now - at least seems to be ;-)), but this thread on P5P might answer a lot of your questions.

    A quick search on the P5P-archive might enlighten you, too.

    regards,

    janx

Re(4): how to avoid mis-spelling hash keys?
by BrentDax (Hermit) on Jan 06, 2003 at 22:56 UTC
    The pseudo-hash feature has been deprecated as of 5.8.0, but fields.pm/base.pm will be retooled in future versions of Perl so they can be used the same way. (Except for fields::phash(), of course...)

    =cut
    --Brent Dax
    There is no sig.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 00:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found