Padre::Task::LexicalReplaceVariable(3pm)

Padre::Task::LexicalReplaceVariable3pm

Lexically variable replace using ppi

Usage

  my $replacer = Padre::Task::LexicalReplaceVariable->new(
          document    => $document_obj,
          location    => [ $line, $column ], # the position of *any* occurrence of the variable
          replacement => '$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.

The replacement can either be provided explicitly by the user (using the "replacement" option) or the user may set the "to_camel_case" or "from_camel_case" options. In that case the variable will be converted to/from camel case. With the latter options, "ucfirst" will force the upper-casing of the first letter (as is typical with global variables).

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

Author

Steffen Mueller "[email protected]"

From padre 1.00+dfsg-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.