B
banker123
I have three variables that are extracted and captured in my perl
program. I currently write these variables to a report using the perl
format function which works great. I would now like to sort this data
using a sort table.
Example: (Read variables into an Array or Hash)
$box=123456 $box=999999
$job=123456N $job=999999N
$file=110306_123456.bdf $file=110306_999999.bdf
Sort Table (Array or Hash)
Box Priority
999999 1
123456 2
Output
Sorted array or hash I presume, sorted using the priority column in the
sort table, like this:
999999 999999N 110306_999999.bdf #Priority #1
123456 123456N 110306_123456.bdf #Priority #2
program. I currently write these variables to a report using the perl
format function which works great. I would now like to sort this data
using a sort table.
Example: (Read variables into an Array or Hash)
$box=123456 $box=999999
$job=123456N $job=999999N
$file=110306_123456.bdf $file=110306_999999.bdf
Sort Table (Array or Hash)
Box Priority
999999 1
123456 2
Output
Sorted array or hash I presume, sorted using the priority column in the
sort table, like this:
999999 999999N 110306_999999.bdf #Priority #1
123456 123456N 110306_123456.bdf #Priority #2