-4

in perl ,

I have table, i have fields like RANGE1, RANGE2, AND RECORDS around 6,

i want to bring these 6 records into array, somthing like

@arr = (range1_record_1, range2_record_1, 
        range1_record_2, range2_record_2, 
        range1_record_3, range2_record_3, 
        range1_record_4, range2_record_4, 
        range1_record_5, range2_record_5);

How to pull records into array,

Toto
  • 89,455
  • 62
  • 89
  • 125
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201

1 Answers1

2

If you are using DBI, try fetchall_arrayref.

cjm
  • 61,471
  • 9
  • 126
  • 175
Alexandre
  • 1,016
  • 3
  • 13
  • 23