RE: variable declaration, was RE: moving to the next line

2004-12-17 Thread Charles K. Clarkson
Chris Devers <[EMAIL PROTECTED]> wrote: : On Thu, 16 Dec 2004, Charles K. Clarkson wrote: : : : Don't declare all your variables at the beginning : : of the script. It works in other languages, but not : : in perl. Declare them as you go. : : Out of curiosity, why this rule? : : When taking

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Fri, 17 Dec 2004, Paul Johnson wrote: > On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > > > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > > > Don't declare all your variables at the beginning > > > of the script. It works in other languages, but not > > > in perl.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Paul Johnson
Sorry, I sent the last reply before I had finished it. On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Lawrence Statton
> Out of curiosity, why this rule? > > When taking programming classes in college, it was drummed into us that > having a data dictionary at the top of a scope was a good habit, and > it's something that I've generally done with the Perl I've written. > > Several people on this list have disc

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Fri, 17 Dec 2004, Jonathan Paton wrote: > On Fri, 17 Dec 2004 09:17:05 -0500 (EST), Chris Devers wrote: > > And what programming language were you learning? C/C++, Java, Visual Basic, Cobol. > In some other languages, like C, C++ and Java you must specify the > exact type of each variable.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Paul Johnson
On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl. Declare them as you go. I suppose that depends on your

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Jonathan Paton
On Fri, 17 Dec 2004 09:17:05 -0500 (EST), Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl. Declare them as you go. > > Out of c

variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > Don't declare all your variables at the beginning > of the script. It works in other languages, but not > in perl. Declare them as you go. Out of curiosity, why this rule? When taking programming classes in college, it was drummed into us th

RE: moving to the next line

2004-12-15 Thread Charles K. Clarkson
Christopher Spears <[EMAIL PROTECTED]> wrote: : So everybody wants to know what I have been working : on. I finally got permission to post this: : : #!/usr/bin/perl -w : use strict; : : my $Pixarport = 7498; : my $host = "lex"; : my $Pixarfile = $Pixarport."@".$host; : my @line; : my $line; : m

moving to the next line

2004-12-15 Thread Christopher Spears
So everybody wants to know what I have been working on. I finally got permission to post this: #!/usr/bin/perl -w use strict; my $Pixarport = 7498; my $host = "lex"; my $Pixarfile = $Pixarport."@".$host; my @line; my $line; my @features_array; my @handles_array; my $handles; my $features; my $si