1Padre::Task::IntroduceTUesmeprorCaornytVrairbiuatbePldaed(Pr3ee)r:l:TDaoscku:m:eInnttartoidounceTemporaryVariable(3)
2
3
4

NAME

6       Padre::Task::IntroduceTemporaryVariable - Introduces a temporary
7       variable using PPI
8

SYNOPSIS

10         my $tempvarmaker = Padre::Task::IntroduceTemporaryVariable->new(
11                 document       => $document_obj,
12                 start_location => [$line, $column], # or just character position
13                 end_location   => [$line, $column], # or ppi-style location
14                 varname        => '$foo',
15         );
16
17         $tempvarmaker->schedule;
18

DESCRIPTION

20       Given a region of code within a statement, replaces that code with a
21       temporary variable.  Declares and initializes the temporary variable
22       right above the statement that included the selected expression.
23
24       Usually, you simply set "start_position" to what
25       "$editor->GetSelectionStart" returns and "end_position" to
26       "$editor->GetSelectionEnd - 1".
27

SEE ALSO

29       This class inherits from "Padre::Task::PPI".
30

AUTHOR

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.32.1                      202P1a-d0r1e-:2:7Task::IntroduceTemporaryVariable(3)
Impressum