NAME

IO::Reverse - read a file in reverse

VERSION

Version 0.03

SYNOPSIS

Read a file from the end of file, line by line

create a test file from the Command Line

$  for i in $( seq 1 10 )
do
  echo "this is $i"
done > t.txt

Now a small test script

 use IO::Reverse;

 my $f = IO::Reverse->new( 
    {
       FILENAME => './t.txt'
    }
 );

 while ( my $line = $f->next ) {
	print "$line";
 }

METHODS

There are only 2 methods: new() and next();

new

my $f = IO::Reverse->new(
   FILENAME => './t.txt'
);

next

Iterate through the file

while ( my $line = $f->next ) {
  print "$line";
}

AUTHOR

Jared Still, <jkstill at cpan.org>

BUGS

Please report any bugs or feature requests to bug-io-reverse at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=IO-Reverse. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc IO::Reverse

You can also look for information at:

LICENSE AND COPYRIGHT

This software is Copyright (c) 2023 by Jared Still.

This is free software, licensed under:

The MIT License