now i am facing problem with count, actually i need to count the data
after spliting like this is my one data
EXCLUSIVE6042142403SHEPLERS COGNAC HORNBACK CAIMAN
- i need to split based on *,if you split base on *, we can get number
count 44, but in coding i don’t know how to count in array, i user
@a.size function, but its shows the count no 1 only, please help me
to count this record and get the array index.
i have given my coding, what i tried in below,
@[email protected]("~") @a.each do |v| @h=v.split("*") @[email protected] end return @test
This is the sample records, this record will follows one by one at the
end of ~.