If I understand what you want to achieve then something like this would seem to be what you are after:
if ($this eq "true") { my $img = get($image); my ($height, $width) = imgsize(\$img); push @array, $string =~ m#stuff#g if $height < $max_h && $width < +$max_w; }
In reply to Re: adding an IF to a push
by GrandFather
in thread adding an IF to a push
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |