NAME

XML::LibXML::Devel::SetLineNumber - Perl extension for blah blah blah

SYNOPSIS

use XML::LibXML::Devel::SetLineNumber;

my $node = $document->getElementsByTagName('foo')->get_node(1);
set_line_number($node, 8);
say $node->line_number;  # says "8"

DESCRIPTION

This module exports one function:

set_line_number($node, $number)

Sets a node's line number.

THIS MODULE IS WELL DODGY

And you're a fool if you use it.

If you do feel you really must use this module, it's probably best to load it like this:

eval {
  require XML::LibXML::Devel::SetLineNumber;
  import XML::LibXML::Devel::SetLineNumber;
  1;
} or *set_line_number = sub { 1 };

Instead of the normal use XML::LibXML::Devel::SetLineNumber.

SEE ALSO

XML::LibXML::Devel, XML::LibXML::Node.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

Copyright (C) 2012 by Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.