in reply to Re^2: Sparse arrays?
in thread Sparse arrays?
defined() should be fast enough that calling it even a million times is no big deal.foreach my $element (@sparse) { if ( defined $element ) { # YOUR CODE HERE # } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Sparse arrays?
by diotalevi (Canon) on Dec 18, 2002 at 16:52 UTC |