Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: "it_says_BALLS_on_your forehead" <simon.chao@xxxxxxx>
- Date: 28 Jul 2005 13:22:26 -0700
that's great news :-).
one suggestion:
using C-type loops in Perl is inefficient.
The fastest For Loop would loop by value, i.e.:
for my $value (@array) {
...do something with $value...
}
or you could use the default variable $_:
for (@array) {
$_ is the element...
}
when you need an iterator, this is much faster than a C-style for loop:
for my $i (0..$#array) {
blah $array[$i];
}
hope this helps!
.
- References:
- length of an array in a struct in an array of structs in a struct in an array of structs
- From: Tuan Bui
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Billy N. Patton
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Paul Lalli
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Tuan Bui
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Tuan Bui
- length of an array in a struct in an array of structs in a struct in an array of structs
- Prev by Date: Re: multidimensional insertion order
- Next by Date: Re: multidimensional insertion order
- Previous by thread: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Next by thread: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Index(es):
Relevant Pages
|