[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

uninitialized vs. undefined



Tom Christiansen <tchrist@chthon.perl.com> writes:

> Could you please define "uninitialized"?  Could you please distinguish
> this from "undefined"?  Can only the scalar elements in an array
> be uninitialized?

I've always felt there must be a difference between

  my @a;	# undefined
  my @a = ();	# defined but empty

I was slightly disappointed to find out that 5.005_63 deprecates
defined(@a) to tell the difference.

-- Johan


Follow-Ups from:
Tom Christiansen <tchrist@chthon.perl.com>
References to:
Tom Christiansen <tchrist@chthon.perl.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]