in reply to Re: count lines, bottom to top
in thread count lines, bottom to top

I don't know, would it be easier to reverse @lines?
Another programmer wrote this and I am trying work on it after the fact. And I don't know much perl..
I do appreciate the help.

Replies are listed 'Best First'.
Re^3: count lines, bottom to top
by jdtoronto (Prior) on Aug 11, 2006 at 17:42 UTC
    You obviously have other issues with hamdling files and the words of our sage monks has given the clues there. As for reversing the order of arrays:
    #!/usr/bin/perl -w use strict; use warnings; my @array1 = (1, 2, 3, 4, 5); my @array2 = reverse( @array1 ); print join(", ", @array1), "\n"; print join(", ", @array2), "\n"; exit;
    jdtoronto