in reply to Re: Table Extract Header Match
in thread Table Extract Header Match

Thanks AppleFritter, I will surely try and use your suggestion .. but the problem here was that i generate the header on the fly based on the input given .. if the input was say 8 .. the header could be 7 6 5 4 3 2 1 0 and if the input was 15 the header could be 15 14 ... 0 can you use your solution for this .. ?

Replies are listed 'Best First'.
Re^3: Table Extract Header Match
by AppleFritter (Vicar) on Jul 09, 2014 at 10:56 UTC

    Of course, you just need to assemble the list of headers the right way. For instance:

    #!/usr/bin/perl use feature qw/say/; use warnings; use strict; my $input = 8; my @headers = reverse map { qr/^$_$/; } (0..($input - 1));

    HTH!

      Great Thanks AppleFritter ..