Guest User

Untitled

a guest
Apr 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.30 KB | None | 0 0
  1. sub rpairs
  2. {
  3.     my ($r, $colheadings) = @_;
  4.  
  5.     return map {
  6.        my $heading = $_;
  7.        if( ref $heading eq "ARRAY" ) {
  8.           map { [ $_ => $r->{encodedby}{$_}, 'bitfields'] } @$heading;
  9.        }
  10.        else {
  11.           [ $heading => $r->{$heading} ]
  12.        }
  13.    } @$colheadings
  14. }
Add Comment
Please, Sign In to add comment