Help for this page

Select Code to Download


  1. or download this
    use File::Spec;
    my $file = File::Spec->catfile('my','dir','my_file.txt');
    ...
    print RFILE reverse @lines;
    close RFILE;
    
  2. or download this
    use IO::All;
    
    io->catdir('my','dir','my_file.txt')->backwards 
    > 
    io->catdir('my','dir','reversed.txt');