I think I sort of get what you mean, but I'm really new to Perl, and I'm not sure if I explained exactly what I wanted to do right, or if I'm just not understanding your code.
In my head I think of a print statement that looks like...
print "You are $years years $months months $weeks weeks $days days old.";So now if you were 28 years and 3 days old...it would only print "You are 28 years 3 days old."? Or if you were 28 years and 1 week old...it would only print "You are 28 years 1 week old." Does storing them in a hash allow me to do that?
In reply to Re^2: Printing based on values?
by Douglas0028
in thread Printing based on values?
by Douglas0028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |