![]() |
|
No such thing as a small change | |
PerlMonks |
Testing array of hash valuesby legLess (Hermit) |
on Dec 11, 2001 at 07:06 UTC ( #130850=perlquestion: print w/replies, xml ) | Need Help?? |
legLess has asked for the wisdom of the Perl Monks concerning the following question:
Monks ~
Two questions here:
I want to format and display a heading iff that heading's children contain data.
I expected the do_head sub to put an empty list into @data; said list would then evaluate as false in a scalar context. This doesn't work, of course, which is why I'm here. I'm sure this is based on my faulty understanding of arrays and hashes. I've re-read the Camel on this subject and not attained enlightenment. Help? Thanks
Back to
Seekers of Perl Wisdom
|
|