- or download this
my @Data = (
"1|someproject|active...",
"2|somethingelse|finished..."
);
- or download this
#!/usr/bin/perl -wT
use strict;
...
1|2|7|4|5|6|7|8|9
1|2|2|5|5|6|7|8|9
1|2|6|7|5|6|7|8|9
- or download this
my @fields = qw/id projname status submitdt assign_dt
total complete_dt person dept closed_dt/;
...
@hash{@fields} = split /\|/, $_;
$_ = \%hash;
}
- or download this
print "The id of the project in Data[0] is $Data[0]{id}\n";
- or download this
my @sorted = sort {$a->{projname} cmp $b->{projname}} @Data;
...
my %temp = %$_;
print "@temp{@fields}\n";
}