<?xml version="1.0" encoding="windows-1252"?>
<node id="468278" title="The default hash - accident, coincidence or conspiracy?" created="2005-06-20 07:42:31" updated="2005-08-04 21:40:00">
<type id="115">
perlquestion</type>
<author id="468275">
SimonClinch</author>
<data>
<field name="doctext">
As everyone knows, the "default" variable $_ and array @_ have special and well-documented uses.   In an idle moment I experimented with %_ using v5.6.1 and lo and behold found that is was indeed predefined and worked as I kind of expected; e.g.&lt;p&gt; %_ = ( a =&gt; 1, b =&gt; 2 ); &lt;p&gt;$_{ FRED } = "bert";&lt;p&gt; and so on like any other hash.   However, I can trace no documentation about it.   How can I check if it will remain a supported feature? I hope so, because it seems the perfect alternative to global ids to store such information in a predefined data dictionary which is what %_ seems to be for if I had to guess its purpose.&lt;p&gt;&lt;p&gt;
Thanks to all,&lt;p&gt;&lt;p&gt;
Simon Clinch</field>
</data>
</node>
