Questions about this topic? Sign up to ask in the talk tab.
Difference between revisions of "Perl/Basics/Hashes/Helper Functions/Each"
From NetSec
AlizaLorenzo (Talk | contribs) (Created page with ""'''while my each'''" can be used to isolate $key => $value pairs from a hash as follows with our %user hash: {{code|text=<syntaxhighlight lang="perl">while(my($ke...") |
Chantal21I (Talk | contribs) |
(No difference)
|
Latest revision as of 00:38, 19 July 2012
"while my each" can be used to isolate $key => $value pairs from a hash as follows with our %user hash:
<syntaxhighlight lang="perl">while(my($key,$value) = each(%user)) { print "Key: $key, Value: $value\n"; };</syntaxhighlight> |