Help for this page

Select Code to Download


  1. or download this
    my (undef, @headings) = split ' ', first {/^\s*AUID/} @lines;
    
  2. or download this
    my @headings = splice @{[
        split ' ', (grep /^\s*AUID/, @lines)[0] ]}, 1;
    
  3. or download this
    my @headings = splice @{[ split ' ', first {/^\s*AUID/} @lines ]}, 1;
    
  4. or download this
    my @headings = map {/(?!^\s*AUID)\s(\S+)/g} first {/^\s*AUID/} @lines;
    
  5. or download this
    my @headings = (first {/^\s*AUID/} @lines)=~/(?!^\s*AUID)\s(\S+)/g;
    
  6. or download this
    use warnings;
    use strict;
    ...
        my (undef, @headings) = split ' ', first {/^\s*AUID/} @lines;
        is_deeply \@headings, \@expect or diag explain \@headings;
    }