banker123 wrote:
Tom Phoenix wrote:
In this case, an array could make your life much simpler. After using
split() into an array, the problem of identifying the last element's
index is easy; it's the last valid index of the array.
my @v = split /,/, $_;
my $last_elem_index = $#v;
Still stuck, OK I read the data file into an array split the variables
using the comma as the delimiter. How do I find the last elemennt in
each of the lines as explained in the original post?
Don't you read the answers you get?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/