Help for this page

Select Code to Download


  1. or download this
       my @Data = (
             "1|someproject|active...",
             "2|somethingelse|finished..."
       );
    
  2. 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
    
  3. or download this
    my @fields = qw/id projname status submitdt assign_dt 
                    total complete_dt person dept closed_dt/;
    ...
        @hash{@fields} = split /\|/, $_;
        $_ = \%hash;
    }
    
  4. or download this
    print "The id of the project in Data[0] is $Data[0]{id}\n";
    
  5. or download this
    my @sorted = sort {$a->{projname} cmp $b->{projname}} @Data;
    
    ...
            my %temp = %$_;
            print "@temp{@fields}\n";
    }