in reply to adding null values to the start of an array
#! /usr/bin/perl -w # use strict; use warnings; use Data::Dumper; my @array; $array[5] = undef; print Dumper( \@array );Yields
$VAR1 = [
undef,
${\$VAR1->[0]},
${\$VAR1->[0]},
${\$VAR1->[0]},
${\$VAR1->[0]},
undef
];
Where ${\$VAR1->[0]} is a reference to the first element which is undef.
Inman
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: adding null values to the start of an array
by etcshadow (Priest) on Oct 08, 2003 at 15:22 UTC | |
by shenme (Priest) on Oct 08, 2003 at 21:51 UTC | |
by etcshadow (Priest) on Oct 09, 2003 at 02:59 UTC |