Help for this page

Select Code to Download


  1. or download this
    open($handle, 'test.dat');
    while (<$handle>) {
    ...
    for (reverse @data) {
        print $_, "\n";
    }
    
  2. or download this
    open($handle, 'test.dat');
    while (<$handle>) {
    ...
    for ($i = $#data; $i > -1; $i--) {
        print $data[$i], "\n";
    }