arun10427 has asked for the wisdom of the Perl Monks concerning the following question:
Now for example if my @data[1] consists of list of numbers, I need to find the diff between current record and prev record till it reaches the end of array.. Perl has such complex way of array accessing, I donno how to do $data[$i]-$data[$i-1].for(my $i=2;$i<table->last_record;$i++) my @data = $table->get_record($i,"Date");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl array access in a for loop
by GrandFather (Saint) on Oct 24, 2009 at 20:11 UTC |