GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PADRE::TASK::LEXICALREPLACEVARIABLE (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



  my $replacer = Padre::Task::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 <B>lexicallyB> 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).

SEE ALSO

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

AUTHOR

Steffen Mueller smueller@cpan.org

COPYRIGHT AND LICENSE

Copyright 2008-2013 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PADRE::TASK::LEXICALREPLACEVARIABLE (3) 2013-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.