RE: Transparent color

2010-04-26 Thread CHAN, KENNETH 1 [AG/7721]
Thanks Shawn. But still not working. -Original Message- From: Shawn H Corey [mailto:shawnhco...@gmail.com] Try: my $img = new GD::Image(100,100,1); [CHAN] Same as before, no difference.

RE: Transparent color

2010-04-23 Thread CHAN, KENNETH 1 [AG/7721]
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. -Original Message- From: Owen [mailto:rc...@pcug.org.au]

Transparent color

2010-04-22 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I used colorAllocateAlpha to specify a transparent color. After filling a circle with it, I don't see the background line which is drawn before. The code is pasted below. What did I do wrong here? Thanks. Regards, Kenneth ## Code ### print

can't locate loadable object for module PadWalker in @INC

2010-04-20 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I encounter a weird problem. I install eclipse with EPIC perspective to Linux. Since I would like to use it's debugger but I don't have root permission. I download PadWalker.pm (http://search.cpan.org/CPAN/authors/id/R/RO/ROBIN/PadWalker-1.9.tar.gz ) and 'tar -xvf' it to

RE: can't locate loadable object for module PadWalker in @INC

2010-04-20 Thread CHAN, KENNETH 1 [AG/7721]
Thanks Fish. Instead of going to all this trouble, you should probably use local::lib : http://search.cpan.org/dist/local-lib/ [CHAN] But the system doesn't have the local::lib module installed, I encountered the same problem in order to use local::lib.

RE: Problem in installing ActivePerl 5.10 on Windows 7 with x64 chipset

2010-04-14 Thread CHAN, KENNETH 1 [AG/7721]
Not really - seems like some sort of permissions issue. Someone on the ActivePerl mailing list might have a better idea. I use the x64 build of ActivePerl 5.10.1 (build 1007) - but I installed from the .zip package (instead of the msi installer). If you think that could be worth a try just

Display the actual values in an array

2010-04-13 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I wanted to display the actual values in an array by the following simple codes: * use Class::Inspector; use Bio::Graphics; my @methods = Class::Inspector-methods( 'Bio::Graphics', 'full', 'public'); foreach (@methods) { print $_ . \n; }

RE: Display the actual values in an array

2010-04-13 Thread CHAN, KENNETH 1 [AG/7721]
[mailto:pen...@nsbeta.info] Sent: Tuesday, April 13, 2010 3:37 PM To: CHAN, KENNETH 1 [AG/7721]; beginners@perl.org Subject: Re: Display the actual values in an array use Data::Dumper; foreach (@methods) { print Dumper $_ . \n; } -邮件原件- 发件人: CHAN, KENNETH 1 [AG/7721] [mailto:kenneth

Problem in installing ActivePerl 5.10 on Windows 7 with x64 chipset

2010-04-13 Thread CHAN, KENNETH 1 [AG/7721]
Hello all, I was helping a friend to install activeperl but encountered a weird error. The OS is Windows 7 with x64 chipset. I downloaded the ActivePerl 5.10 for x64 ( http://downloads.activestate.com/ActivePerl/releases/5.10.1.1007/ActiveP erl-5.10.1.1007-MSWin32-x64-291969.msi ). After

RE: Display the actual values in an array

2010-04-13 Thread CHAN, KENNETH 1 [AG/7721]
Thanks Uri and Shlomi. The dumper works but still not getting the proper results, please see comment in text. Thanks. -Original Message- From: Uri Guttman [mailto:u...@stemsystems.com] first off, learn to bottom post and edit the quoted emails. i deleted tons of stuff below this.

function umask() and problem in GD::image-png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux. However, if I put umask 002 in the beginning of a perl script, after execution, the file

RE: function umask() and problem in GD::image-png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
on how to do it? Or can I only reinstall the GD distribution and how? Thanks heaps. Regards, Kenneth -Original Message- From: Shlomi Fish [mailto:shlo...@iglu.org.il] Sent: Wednesday, March 31, 2010 5:18 PM To: beginners@perl.org Cc: CHAN, KENNETH 1 [AG/7721] Subject: Re: function