There is no way to re-define the variable in perl.  The $, @, and % all 
have thier own seperate namespaces, and thus the definition

my $in;
my @in;    #creates *both* a scalar and array

the best way is to

use warnings;    #start of every program!

and it will give you a bit of ugly output to STDER

having two

my $name = "Sean Fritz";
my $name = "Sean W. Fritz"; #functions as the shown assignment statment,

just functions as an assignment statment (I believe) and dosen't alocate 
any memory or destroy the previous variable.  I could be very wrong on 
that part though.

I do know that

my $a = $a;             #refrences whatever was the scoped $a before

will refrence whatever $a was prior to you creating that global var.  so 
it shouldn't make a diffrence if you redefine it with extra 'my's.


> That would tag the second dim statement to be erroneous ("Name Redefined
> Error"), thereby prohibiting redefinition of a variable! I am seeking a
> clarification as to whether there a way akin to this in Perl?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to