> I am also not using my $var=""
> because my cgi class did not teach me how and I haven't found the
> time to incorporate my knowledge from my recently-taken Intro to Perl
> class. Some pontification on the usage my $var="" would be great.
> As well as the appropriate usage of "&&" and "and" and "||" and "or".
(Sorry I forgot this is my last transmission.)
"Appropriate" is such a loose term. Here is a BRIEF description of the
differences of my and local variable declarations.
First: It has to do with "scope" or where the variables are known.
local variables are known in the BLOCK of code in which they are
declared and in any BLOCKs (including subroutines) invoked within that
scope or BLOCK.
my variables only exist in the BLOCK in which they are defined. my
variables can be thought of as more "private" (although that's prolly
not the best word to use) to the BLOCK.
Jope that helps.
--Alan
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/