1Padre::Task::LexicalRepUlsaecreVCaornitarbilbeu(t3e)d PePraldrDeo:c:uTmaesnkt:a:tLieoxnicalReplaceVariable(3)
2
3
4
6 Padre::Task::LexicalReplaceVariable - Lexically variable replace using
7 PPI
8
10 my $replacer = Padre::Task::LexicalReplaceVariable->new(
11 document => $document_obj,
12 location => [ $line, $column ], # the position of *any* occurrence of the variable
13 replacement => '$foo',
14 );
15 $replacer->schedule;
16
18 Given a location in the document (line/column), determines the name of
19 the variable at this position, finds where the variable was defined,
20 and lexically replaces all occurrences with another variable.
21
22 The replacement can either be provided explicitly by the user (using
23 the "replacement" option) or the user may set the "to_camel_case" or
24 "from_camel_case" options. In that case the variable will be converted
25 to/from camel case. With the latter options, "ucfirst" will force the
26 upper-casing of the first letter (as is typical with global variables).
27
29 This class inherits from "Padre::Task::PPI".
30
32 Steffen Mueller "smueller@cpan.org"
33
35 Copyright 2008-2011 The Padre development team as listed in Padre.pm.
36
37 This program is free software; you can redistribute it and/or modify it
38 under the same terms as Perl 5 itself.
39
40
41
42perl v5.30.1 2020-01P-a3d0re::Task::LexicalReplaceVariable(3)