RE: Manageable code

2002-01-10 Thread John Edwards
_id=148 John -Original Message- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: 10 January 2002 16:45 To: Scott; [EMAIL PROTECTED] Subject: Re: Manageable code --- Scott <[EMAIL PROTECTED]> wrote: > I admit I am a newbie and making this harder than it really is :) But, I > ha

Re: Manageable code

2002-01-10 Thread William.Ampeh
Could you let us know the results you were expecting? Also, remember that the "printf" statements will be printing to a file with "NEWQUOTES" as a pointer. If NEWQUOTES has net been declared, nothing will be printed, and without "use strict", PERL will complain. __ William Ampe

Re: Manageable code

2002-01-10 Thread Curtis Poe
--- Scott <[EMAIL PROTECTED]> wrote: > I admit I am a newbie and making this harder than it really is :) But, I > have a program that is growing by the minute and I want to split it apart > into chunks or sub routines. > > Here is an example: > > sub init_type_99{ > print NEWQUOTES "99";

RE: Manageable code

2002-01-10 Thread Bob Showalter
> -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 10:40 AM > To: [EMAIL PROTECTED] > Subject: Manageable code > > > I admit I am a newbie and making this harder than it really > is :) But, I > have a program

RE: Manageable code

2002-01-10 Thread Scott
On Thu, 10 Jan 2002, Bob Showalter wrote: > > The file handle NEWQUOTES isn't in scope inside the subroutine. > > Huh? How so? Filehandles are global, no? Assuming he's opened > NEWQUOTES before calling his sub, all should be fine. I did open NEWQUOTES before the sub. But after reading the FAQ

RE: Manageable code

2002-01-10 Thread Bob Showalter
> -Original Message- > From: Joshua Nye [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 10:56 AM > To: Scott; [EMAIL PROTECTED] > Subject: Re: Manageable code > > > The file handle NEWQUOTES isn't in scope inside the subroutine. Huh? How s

Re: Manageable code

2002-01-10 Thread Joshua Nye
OTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 10, 2002 10:39 AM Subject: Manageable code > I admit I am a newbie and making this harder than it really is :) But, I > have a program that is growing by the minute and I want to split it apart > into chunks or sub routine

Manageable code

2002-01-10 Thread Scott
I admit I am a newbie and making this harder than it really is :) But, I have a program that is growing by the minute and I want to split it apart into chunks or sub routines. Here is an example: sub init_type_99{ print NEWQUOTES "99"; #RecordType printf NEWQUOTES ("