On Jul 8, 6:14 pm, [EMAIL PROTECTED] (Ken Foskey) wrote: > # Since you are use strict you must declare all variables before using > # them.
The "before" in that statement may be missleading. >95% of the time the best place to declare variable is _when_ you first use them. > my ($var1, $var2); Declaring all your variables up top (premature declaration) is a bad habit that'll make your code less readable, harder to maintain and more prone to errors. > > $var1 = 'Hello World'; # always wanted to do that :-) > > $var2 = "$var1\n"; Better to say my $var1 = 'Hello World'; # always wanted to do that :-) my $var2 = "$var1\n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/