Padre::Task::PPI::LexicalReplaceVariable3pm
Lexically variable replace using ppi
Usage
my $replacer = Padre::Task::PPI::LexicalReplaceVariable->new(document => $document_obj,location => [$line, $column], # the position of *any* occurrence of the variablereplacement => '$foo',);$replacer->schedule();
Overview
Given a location in the document (line/column), determines the name of the variable at this position, finds where the variable was defined, and lexically replaces all occurrences with another variable.
Copyright and license
Copyright 2008-2010 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.