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> wou

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 loo

Re: deallocating?

2003-12-21 Thread James Edward Gray II
On Dec 21, 2003, at 12:04 PM, christopher j bottaro wrote: 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 nod

RE: How to write a page break character.- one more question

2003-12-21 Thread chetak.sasalu
Hi, I have one more requirement, The last STATUS which occurs just prior to the file end should not be followed by a page break character. How can I code this in perl? Thanks John! For giving me the fish and, more importantly, the fishing net(pod) :-D -Chetak -Original Message- From: J

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: 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 : tex

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

Re: generating GIFs

2003-12-21 Thread Andrew Gaffney
Robert Brown wrote: Andrew Gaffney writes: > The resulting image is . I was modeling the > image after one I had previously done using Paint Shop Pro at > . They look pretty darn similar except for > t

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 tex

Re: generating GIFs

2003-12-21 Thread Robert Brown
Andrew Gaffney writes: > The resulting image is . I was modeling > the > image after one I had previously done using Paint Shop Pro at > . They look pretty darn similar > except for > the text. Can

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 . When I : run the below program, I get: : : : skyline skyline-src # ./genbutton.pl : gd-png: fatal libpng error: In

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 y

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 hav

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 . When I : run the below program, I get: : : : skyline skyline-src # ./genbutton.pl : gd-png: fatal libpng error: Invalid number of colors in p

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

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 a

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 a

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 . 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: 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 woul

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 bord

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 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

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 bord

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: 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 ? > http://www.

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,

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 a

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 "" you can insert tabs in a regex wit

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 deallocate

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 ot

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 yo