Another way might be:sub def { return defined $_[0] ? $_[0] : def($_[1],""); }
sub def { (grep defined, @_, "")[0]; }
-- Randal L. Schwartz, Perl hacker
In reply to RE: (tye)Re: Structured Printing of Hash of Arrays
by merlyn
in thread Structured Printing of Hash of Arrays
by Limo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |