---
name: "Padre::Task::PPI::LexicalReplaceVariable"
section: "3pm"
platform: "linux"
package: "padre"
version: "0.63.ds1-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Padre::Task::PPI::LexicalReplaceVariable"
---

# Padre::Task::PPI::LexicalReplaceVariable(3pm)

Lexically variable replace using PPI

## NAME

Padre::Task::PPI::LexicalReplaceVariable - Lexically variable replace using PPI

## SYNOPSIS

```
  my $replacer = Padre::Task::PPI::LexicalReplaceVariable->new(
          document    => $document_obj,
          location    => [$line, $column], # the position of *any* occurrence of the variable
          replacement => '$foo',
  );
  $replacer->schedule();
```

## DESCRIPTION

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.

## SEE ALSO

This class inherits from `"Padre::Task::PPI"`.

## AUTHOR

Steffen Mueller `"smueller@cpan.org"`

## 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.
