_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
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
--- 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";
> -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
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
> -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
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
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 ("