Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Given a line number, returns some basic information about where in the perl document you are.

branch: release

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 Build.PL
Octocat-spinner-32 CHANGES
Octocat-spinner-32 INSTALL
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 META.json
Octocat-spinner-32 META.yml
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README
Octocat-spinner-32 README.mkdn
README.mkdn

Accepts either a scalar or a scalar reference. This is passed directly to PPI::Document::new, so the same rules as in that method apply.

Basically, if you pass in a scalar, it will be assumed to be a filename and said file will be loaded.

Otherwise, a scalar reference is assumed to be a PPI document and will be parsed directly.

Call this method to index the lines for the new PPI::Document.

Call this method with a line number, it will return one of

BEGIN CHECK UNITCHECK INIT END POD DATA END

or

::

SYNOPSIS

#!/usr/bin/perl use strict; use warnings; use PPIx::IndexLines; my $document = PPIx::IndexLines->new( +shift ); $document->index_lines; print $document->line_type( +shift );

SEE ALSO

PPIx::IndexOffsets PPIx::LineToSub

Something went wrong with that request. Please try again.