Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: adding an IF to a push

by ikegami (Patriarch)
on Jun 28, 2006 at 04:40 UTC ( [id://557924]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    push @array, $string =~ m#stuff#g
        if sub {
    ...
            my ($height, $width) = imgsize(\$img);
            $height < $max_h and $width < $max_w;
        }->();
    
  2. or download this
    my $img = get($image);
    my ($height, $width) = imgsize(\$img);
    push @array, $string =~ m#stuff#g
        if $height < $max_h and $width < $max_w;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found