Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Scale image problems

by SuicideJunkie (Priest)
on Mar 20, 2013 at 18:02 UTC ( #1024579=note: print w/ replies, xml ) Need Help??


in reply to Scale image problems

$src->scale(xpixels=>400);
"scale() called in void context - scale() returns the scaled image"

Yep. Looks like void context to me too.

Why are you not saving the return value? The message is saying you should do:

my $resized = $src->scale(xpixels=>400);

Which puts the scale in scalar context


Comment on Re: Scale image problems
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-07-11 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls