I'll leave the ... as an exercise for others :))if($picture->size() eq "8x10") { # it's the only one that'll fit on 8.5x11 $picture->print(); return; } ...
Seriously, that's an interesting problem; I'm looking forward to seeing the answers.
Edit:Did a bit of searching on google, with no luck until I followed the advice below and tried "two dimensional knapsack". But I did come across a commercial library, altough that looks targeted at much more generalized versions of the problem than yours...
--
Mike
In reply to Re: Rectangle packing...
by RMGir
in thread Rectangle packing...
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |