On Friday 23 Apr 2010 15:03:19 Shawn H Corey wrote:
> CHAN, KENNETH 1 [AG/7721] wrote:
> > First of all, thanks Owen, Shlomi and Shawn for your advices.
> > But I still can't get the line appear on the transparent circle. I am
> > guessing maybe there is a problem with my Perl setting or something.
> > Please see in text comments.
> 
> Try:
> my $img = new GD::Image(100,100,1);

That should be:
[code]
my $img = GD::Image->new(100,100,1);
[/code]

Indirect object creation ("new GD::Image") should be avoided. See Perl Best 
Practices and the 3rd Camel book ("Programming Perl") for why.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
"Star Trek: We, the Living Dead" - http://shlom.in/st-wtld

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to