in reply to Re^4: adding an IF to a push
in thread adding an IF to a push

You have to insert parens into your m## operation
m#(http://images\.imagefap\.com/images/thumb/\d+/\d+/\d+\.jpg)#g
or use $&
# update: this won't work anyways - see previous post and followup push @found_images, $get_gal =~ m#http://images\.imagefap\.com/imag +es/thumb/\d+/\d+/\d+\.jpg#g if do { my $image = get($&); print "found $1<br>"; my ($height, $width) = imgsize(\$image); $height < $max_height and $width < $max_width; };
at the expense of speed - see perlvar, section BUGS for that.
_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^6: adding an IF to a push
by ikegami (Patriarch) on Jun 28, 2006 at 06:13 UTC

    That's not enough to make it work. Check the reply I posted at the same time as you.

    And don't use $&! Simply using it will slow down regexp without captures everywhere in your program.

      if I only typed slower and checked the thread once in a while, I wouldn't have posted seeing your answer... ;-)