I might have been a touch confused as to what you were asking. Adding this
beforeelsif(ref($ref) eq '') { $sub1->('',''); print 'undef'; } # scalar
prints all scalars as undef.if ($lastc){
$hash={1AoH=>[{h1=>{a=>undef} }, {h2=>{a=>undef} }, {h3=>{a=>undef} } ], 2Aoa=>[[undef, undef, undef ], [undef, undef, undef ] ], 3AoAoH=>[[{2=>undef, a=>undef }, {2=>undef, a=>undef }, {axx=>{a=>undef} } ] ], 4HoHoA=>{a11=>[{h111=>{a=>undef} }, {h211=>{a=>undef} }, {h311=>{a=>undef} }, undef ], a22=>[{h122=>{a=>undef} }, {h222=>{a=>undef} }, {h322=>{a=>undef} }, undef ] }, 5HoH=>{a411=>{h1111=>{a=>undef}, h4112=>{h41121=>{a=>undef} }, h4113=>{h41131=>{a=>undef} }, h4114=>undef }, a422=>{h422a=>{a4222=>{h42221=>{a=>undef} }, a4223=>{h42231=>{a=>undef} }, h4221=>{a=>undef, b=>undef } }, h422b=>undef }, a433=>{a=>undef, b=>undef, c=>undef } }, Clean=>{extra=>{}}, Domains=>{}, Lists=>{Body=>{RedactedWordList=>{weight=>undef, words=>{word1=>undef, word2=>undef }, words_found=>[] } } }, Words=>{}, flags=>{Redacted=>undef, Redacted2=>undef, Redacted3=>undef, Redacted4=>undef, example=>undef, font_attributes=>{colors=>undef, size=>undef }, font_changes=>{colors=>undef, size=>undef } }, other_results=>{}, recipient_list=>[undef], removed_results=>[undef, undef, undef ], result=>undef };
In reply to Re^2: Traversing a hash of hashes of hashes
by huck
in thread Traversing a hash of hashes of hashes
by kcorj2244
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |