in reply to Clearing Array Values
will clear those datatypes.. whereasundef @array; #@array undefined undef $scalar; #$scalar will be undefined
would assign undefined values to the datatypes. The biggest use for this would be assigning $variables to some array elements.. ie:@array[2] = undef; #pick element number to undefine $scalar = undef; #$scalar will exist, but with no value
(thank you crazyinsomniac)($value1,undef,undef,$value2,$value3,undef) = @array;
|
|---|