in reply to adding an IF to a push
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; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: adding an IF to a push
by sulfericacid (Deacon) on Jun 28, 2006 at 04:10 UTC |