Andy Lester > ack-1.96 > App::Ack::Plugin::Basic



Annotate this POD


View/Report Bugs
Source   Latest Release: ack-2.14


Container for the Repository and Resources necessary.

App::Ack::Resource::Basic ^


new( $filename )




Returns the name of the resource.



$res->needs_line_scan( \%opts )






API: Gets the next line of text from the resource. Returns true if there is one, or false if not.

Sets $_ with the line of text, and $. for the ID number of the text. This basically emulates a call to <$fh>.


API: Close the resource.

App::Ack::Repository::Basic ^


Returns a resource object for the next resource in the repository.


Does nothing. For the base repository, the opening & closing are handled at the resource level.

If this repository were, say, an Excel workbook, you'd probably close the file. If it were a database, you'd close the database connection.

syntax highlighting: