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
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.
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.
> 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
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.
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
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
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
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
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
10 matches
Mail list logo