in reply to defined of a matrix
Perhaps your code would look better with exists rather than defined.
#!/usr/bin/perl -w use strict; my @test = ( 0 ); my $len = 0; if ( exists $test[1]->[1] ) { $len = @test; } print $len;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: defined of a matrix
by pelagic (Priest) on Jun 15, 2004 at 13:28 UTC |