Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Would this be correct?push @array, $string =~ m#stuff#g;
If so, I need to add something onto that one and wouldn't know how to do that. I'd need to push it only IF I do an image::size on itpush @array, $string =~ m#stuff#g if ($this eq "true");
I need to check to make sure height and width are less than $max_h and $max_w and ONLY if both are, then push it.my $img = get($image); my ($height, $width) = imgsize(\$img);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: adding an IF to a push
by Zaxo (Archbishop) on Jun 28, 2006 at 03:48 UTC | |
by sulfericacid (Deacon) on Jun 28, 2006 at 03:56 UTC | |
by ikegami (Patriarch) on Jun 28, 2006 at 04:40 UTC | |
by sulfericacid (Deacon) on Jun 28, 2006 at 04:45 UTC | |
by ikegami (Patriarch) on Jun 28, 2006 at 05:15 UTC | |
| |
by Anonymous Monk on Jun 28, 2006 at 05:40 UTC | |
by ikegami (Patriarch) on Jun 28, 2006 at 06:01 UTC | |
by shmem (Chancellor) on Jun 28, 2006 at 06:01 UTC | |
| |
Re: adding an IF to a push (grep)
by tye (Sage) on Jun 28, 2006 at 05:20 UTC | |
Re: adding an IF to a push
by GrandFather (Saint) on Jun 28, 2006 at 04:03 UTC | |
by sulfericacid (Deacon) on Jun 28, 2006 at 04:10 UTC |