Padre::Task::PPI::LexicalReplaceVariable - Lexically variable replace using PPI
my $replacer = Padre::Task::PPI::LexicalReplaceVariable->new( document => $document_obj, location => [$line, $column], # the position of *any* occurrance of the variable replacement => '$foo', ); $replacer->schedule();
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 occurrances with another variable.
This class inherits from Padre::Task::PPI.
Padre::Task::PPI
Steffen Mueller smueller@cpan.org
smueller@cpan.org
Copyright 2008-2009 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.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.