Re: diff between packages and modules

2003-12-21 Thread Randal L. Schwartz
R == R Joseph Newton [EMAIL PROTECTED] writes: R Message-ID: [EMAIL PROTECTED] R [Randal] R ... R The point is that R $instance-new R could mean either clone, or make one of the same class as. You R don't need it for make one of the same class as, because you've got: R

RE: Win32 Registry

2003-12-21 Thread Tim Johnson
Easy there. Before we start using the 'V' word, lets just step back for a second. First of all, there is absolutely nothing wrong with putting a program in the Run key, and it is in fact a bad idea to tell people to categorically delete anything in that key. I would agree that viruses and

Re: deallocating?

2003-12-21 Thread John W. Krahn
Christopher J Bottaro wrote: just for practice, i made a class BinaryTree. its just a blessed reference to a hash that contains two things: size and root. root gets assigned to a BinaryTree::Node which is just a bless reference containing: key, value, left, right. perl deallocates

Re: How to write a page break character.

2003-12-21 Thread George Georgalis
Chetak Sasalu wrote: I want to search for the word status in a group of files in a directory and replace it with status\n^L where ^L is a page break chatacter, In vi I can type it in using cntrl+l. if you really want to 'type' it in, you can type C-vC-l you can insert tabs in a regex with

Re: deallocating?

2003-12-21 Thread R. Joseph Newton
christopher j bottaro wrote: just for practice, i made a class BinaryTree. its just a blessed reference to a hash that contains two things: size and root. root gets assigned to a BinaryTree::Node which is just a bless reference containing: key, value, left, right. perl deallocates

Re: deallocating?

2003-12-21 Thread R. Joseph Newton
NYIMI Jose (BMB) wrote: Did you read this ? http://www.perl.com/lpt/a/2002/08/07/proxyobject.html José. Hi Jose, Actually, if christopher is accurately reporting his class structures, this article should not relate. He reports only one-way references, wherein Mommy watches her kids, and

RE: deallocating?

2003-12-21 Thread NYIMI Jose (BMB)
Yes, you right. José. -Original Message- From: R. Joseph Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, December 21, 2003 6:18 PM To: NYIMI Jose (BMB) Cc: christopher j bottaro; [EMAIL PROTECTED] Subject: Re: deallocating? NYIMI Jose (BMB) wrote: Did you read this ?

Re: generating GIFs

2003-12-21 Thread R. Joseph Newton
Andrew Gaffney wrote: I want to write a Perl program that will auto generate GIF images. The images that I want to generate will be about 30x80. It will be a black rectangle starting in the bottom-right with a few pixels border on the top and left. There will be a light blue rectangle

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
zentara wrote: On Sat, 20 Dec 2003 14:23:15 -0600, [EMAIL PROTECTED] (Andrew Gaffney) wrote: I want to write a Perl program that will auto generate GIF images. The images that I want to generate will be about 30x80. It will be a black rectangle starting in the bottom-right with a few pixels

Re: generating GIFs

2003-12-21 Thread Robert Brown
Andrew Gaffney writes: zentara wrote: Well, gifs were shunned by alot of the software writers because of the old patent issues. So your best bet will be to make your image as a jpg or png, then convert it to gif afterwards. Is PNG a good format for a 51x20 image with 4 or 5 colors?

Re: deallocating?

2003-12-21 Thread christopher j bottaro
On Sunday 21 December 2003 11:07 am, R. Joseph Newton wrote: Nope.  Try $root = undef; interesting.  so perl is smart enough to know that once root is undef, the user has no way of reaching any of the nodes in the tree, even if those nodes still have references to them (i.e. the parent nodes

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
zentara wrote: On Sat, 20 Dec 2003 14:23:15 -0600, [EMAIL PROTECTED] (Andrew Gaffney) wrote: I want to write a Perl program that will auto generate GIF images. The images that I want to generate will be about 30x80. It will be a black rectangle starting in the bottom-right with a few pixels

Re: Win32 Registry

2003-12-21 Thread R. Joseph Newton
Tim Johnson wrote: Easy there. Before we start using the 'V' word, lets just step back for a second. First of all, there is absolutely nothing wrong with putting a program in the Run key, and it is in fact a bad idea to tell people to categorically delete anything in that key. I would

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Andrew Gaffney wrote: I wrote my own script based off your example and the docs at http://search.cpan.org/~lds/GD-2.11/GD.pm. When I run the below program, I get: skyline skyline-src # ./genbutton.pl gd-png: fatal libpng error: Invalid number of colors in palette gd-png error: setjmp returns

Re: generating GIFs

2003-12-21 Thread Daniel Staal
--As off Sunday, December 21, 2003 11:59 AM -0600, Robert Brown is alleged to have said: Is there any alternative to gifs to make animated images? Flash is proprietary to macromedia, and gif to Unisys. Is there such a thing as an animated png? How about a free (in the GPL sense) open sourced

Re: generating GIFs

2003-12-21 Thread Robert Brown
Daniel Staal writes: --As off Sunday, December 21, 2003 11:59 AM -0600, Robert Brown is alleged to have said: Is there any alternative to gifs to make animated images? Flash is proprietary to macromedia, and gif to Unisys. Is there such a thing as an animated png? How about a

Re: generating GIFs

2003-12-21 Thread R. Joseph Newton
Andrew Gaffney wrote: zentara wrote: On Sat, 20 Dec 2003 14:23:15 -0600, [EMAIL PROTECTED] (Andrew Gaffney) wrote: I want to write a Perl program that will auto generate GIF images. The images that I want to generate will be about 30x80. It will be a black rectangle starting in the

RE: generating GIFs

2003-12-21 Thread Charles K. Clarkson
Andrew Gaffney [EMAIL PROTECTED] wrote: : : I wrote my own script based off your example and the docs : at http://search.cpan.org/~lds/GD-2.11/GD.pm. When I : run the below program, I get: : : : skyline skyline-src # ./genbutton.pl : gd-png: fatal libpng error: Invalid number of colors in

Re: where to look for modules?

2003-12-21 Thread christopher j bottaro
On Saturday 20 December 2003 05:05 am, Owen wrote: I think the easiest for you would be to; use Modules; # as found in /usr/lib/perl5/5.8.0/ use lib '/home/cjb/perlmodules'; #followed by use MyModule; #and/or any other module you have there great, that worked perfectly...=) i'm having a

RE: where to look for modules?

2003-12-21 Thread NYIMI Jose (BMB)
Just type perldoc lib HTH, José. -Original Message- From: christopher j bottaro [mailto:[EMAIL PROTECTED] Sent: Sunday, December 21, 2003 8:50 PM To: [EMAIL PROTECTED] Subject: Re: where to look for modules? On Saturday 20 December 2003 05:05 am, Owen wrote: I think the easiest for

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : : I wrote my own script based off your example and the docs : at http://search.cpan.org/~lds/GD-2.11/GD.pm. When I : run the below program, I get: : : : skyline skyline-src # ./genbutton.pl : gd-png: fatal libpng error:

Re: generating GIFs

2003-12-21 Thread Robert Brown
Andrew Gaffney writes: The resulting image is http://www.skylineaero.com/testbutton.png. I was modeling the image after one I had previously done using Paint Shop Pro at http://www.skylineaero.com/contactusbutton.gif. They look pretty darn similar except for the text. Can anyone

RE: generating GIFs

2003-12-21 Thread Charles K. Clarkson
Andrew Gaffney [EMAIL PROTECTED] wrote: : Can anyone recommend a way to make the generated text : (testbutton.png) look like the text in the hand-made : one (contactusbutton.gif)? Also, since this will be a : script to auto-generate these images with user-defined : text, how can I center the text

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Robert Brown wrote: Andrew Gaffney writes: The resulting image is http://www.skylineaero.com/testbutton.png. I was modeling the image after one I had previously done using Paint Shop Pro at http://www.skylineaero.com/contactusbutton.gif. They look pretty darn similar except for the

Re: where to look for modules?

2003-12-21 Thread Owen
On Sun, 21 Dec 2003 13:49:59 -0600 christopher j bottaro [EMAIL PROTECTED] wrote: On Saturday 20 December 2003 05:05 am, Owen wrote: I think the easiest for you would be to; use Modules;# as found in /usr/lib/perl5/5.8.0/ use lib '/home/cjb/perlmodules'; #followed by use

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : Can anyone recommend a way to make the generated text : (testbutton.png) look like the text in the hand-made : one (contactusbutton.gif)? Also, since this will be a : script to auto-generate these images with user-defined :

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Andrew Gaffney wrote: Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : Can anyone recommend a way to make the generated text : (testbutton.png) look like the text in the hand-made : one (contactusbutton.gif)? Also, since this will be a : script to auto-generate these images

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Andrew Gaffney wrote: Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : Can anyone recommend a way to make the generated text : (testbutton.png) look like the text in the hand-made : one (contactusbutton.gif)? Also, since this will be a : script to auto-generate these images

Re: deallocating?

2003-12-21 Thread christopher j bottaro
Does that clear things up? yes, very much so...thank you...=) -- christopher On Sunday 21 December 2003 10:39 pm, James Edward Gray II wrote: Perl uses a reference counting system. That usually does the right thing, like most things Perl. It's not magic, but it sure is handy. Let's look at

Re: deallocating?

2003-12-21 Thread Randal L. Schwartz
James == James Edward Gray [EMAIL PROTECTED] writes: James Object A's ref count just hit zero, so it's gone. Now when that James garbage collection happens, B's count is reduced, since A's reference James to it is reclaimed. If it hits zero too, B will be collected. That James would reduce