Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

padre::task::lexicalreplacevariable(3pm) [debian man page]

Padre::Task::LexicalReplaceVariable(3pm)		User Contributed Perl Documentation		  Padre::Task::LexicalReplaceVariable(3pm)

NAME
Padre::Task::LexicalReplaceVariable - Lexically variable replace using PPI 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 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). SEE ALSO
This class inherits from "Padre::Task::PPI". AUTHOR
Steffen Mueller "smueller@cpan.org" COPYRIGHT AND LICENSE
Copyright 2008-2012 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. perl v5.14.2 2012-06-27 Padre::Task::LexicalReplaceVariable(3pm)

Check Out this Related Man Page

Padre::PPI::UpdateCopyright(3pm)			User Contributed Perl Documentation			  Padre::PPI::UpdateCopyright(3pm)

NAME
Padre::PPI::UpdateCopyright - Demonstration transform SYNOPSIS
my $transform = Padre::PPI::UpdateCopyright->new( name => 'Adam Kennedy' ); $transform->apply( Padre::Current->document ); DESCRIPTION
"Padre::PPI::UpdateCopyright" provides a demonstration of a typical Padre::Transform class. This class implements a document transform that will take the name of an author and update the copyright statement to refer to the current year, if it does not already do so. METHODS
new my $transform = Padre::PPI::UpdateCopyright->new( name => 'Adam Kennedy' ); The "new" constructor creates a new transform object for a specific author. It takes a single "name" parameter that should be the name (or longer string) for the author. Specifying the name is required to allow the changing of a subset of copyright statements that refer to you from a larger set in a file. name The "name" accessor returns the author name that the transform will be searching for copyright statements of. TO DO
May need to overload some methods to forcefully prevent Document objects becoming children of another Node. SUPPORT
See the support section in the main module. AUTHOR
Adam Kennedy <adamk@cpan.org> COPYRIGHT
Copyright 2009-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 itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-27 Padre::PPI::UpdateCopyright(3pm)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check query execution to go further

Can any one help with script (Korn) to do following ? :confused: I have 3 tasks to do in a shell. Task (1) is executing query which unloads the result into file XYZ. Before I start Task (2) which is java program and depends on file XYZ, I need to make sure that Task (1) is completed... (1 Reply)
Discussion started by: cub
1 Replies

2. Shell Programming and Scripting

variable replacement

hi all , i want a command that interacts with the input of a user . i.e. i want it to serch a file for the first occurance of a variable and replace the value that is after the equal sign . for example : my file contains a varible that is $HOME=/home i want to search for variable $HOME... (4 Replies)
Discussion started by: ppass
4 Replies

3. Shell Programming and Scripting

Replace variable with a user defined variable

I have a file that has a list of entries in a column x z z z x y z The column can have any length and any number of any strings. I need to replace each unique string with a user defined number. I can filter the unique entries out using awk '{if (NF==5) print $2}' file | uniq | nl >... (1 Reply)
Discussion started by: ce124
1 Replies

4. Shell Programming and Scripting

Help Me Please

:o I have A file Xyz , Task is to append 52 spaces at the end of each line of the file excluding first and last line. Please help me out :confused: (1 Reply)
Discussion started by: deepam
1 Replies

5. UNIX for Dummies Questions & Answers

Deleting the first line of .gz file

Hi All, I have too many .gz files (test.gz). Task is to remove first line of each file. Can I do it without unzipping the files? Your help is appreciated. (4 Replies)
Discussion started by: Chulamakuri
4 Replies

6. Programming

C code : Segmentation fault

Hi Friends, I have written a small code in C which performs the below operations Task : 1 ) read line by line from a file. 2 ) assuming 3th and 4th fields of the file as GN and GNTO 3 ) The target file should contain all the fields except GNTO. 4... (3 Replies)
Discussion started by: kiran_bhatter
3 Replies

7. Shell Programming and Scripting

wildcard in sed substitution

I have a number of strings that I want to remove: <b>Task: 100</b> <b>Task: 1100 </b> <b>Task: 2200 </b> But the numbers in them can vary from 4, 5 8, digits in length. But, no alpha chars. I tried this: sed '/Task:/,//d' $file > tmpfile ; mv tmpfile $file But it removed additional text on... (5 Replies)
Discussion started by: dba_frog
5 Replies

8. Shell Programming and Scripting

Homework: Make a one-line Unix command - using pipe(s)

Task A: Make a one-line Unix command - using pipe(s) - to display the number of files in your home directory including the hidden files that begin with '.' Task B:Make a one-line Unix command - using pipe(s) - to display the number of unique zip codes in famous.dat (hint: use -u on sort) Task... (1 Reply)
Discussion started by: wises
1 Replies

9. UNIX for Dummies Questions & Answers

substituting variable value in AWK

Hi All, my requirement is as below. I need to replace a value in a particular column with a substitution variable(date value) and modified value of the current column value in the same position. for ex. i have a record like 02;aaaa;bbbbb;cccccc;dddddd;123456789;hhhhh;12hs;asdf ;... (3 Replies)
Discussion started by: ganesh_248
3 Replies

10. Shell Programming and Scripting

array and string with for-loop and grep

Hello together, first of all, iam really a beginner in Shellskripting and i need some help please. Following Task i try to finished: vmtoolsd --cmd 'info-get guestinfo.ovfEnv' > vmt In the file vmt are some strings that iam searching for. For that i try to create a array like: ... (2 Replies)
Discussion started by: dreipapier
2 Replies

11. Homework & Coursework Questions

Linux Shell Script

Hi Guys I am new to Linux Shell Scripting . Can any one help me with this Task...files are attached for reference Task 1: write a script to generate a large size report file MX0002_new.XML by using the template MX0001_new.XML. Shell script is recomended, and it can run on Linux without... (2 Replies)
Discussion started by: samy_1811
2 Replies

12. Shell Programming and Scripting

AWK Command

I have a file seperated by pipe(|) operator I want to fetch lines from the file having the word "Task started" in 7th column awk -F"" '{if($7 == "Task started") print $0}' file.txt But this code is not giving any output. Please kindly point out where I went wrong (43 Replies)
Discussion started by: Prachi Gupta
43 Replies

13. Shell Programming and Scripting

Windows Task with Bash script

Hello I have a problem with use bash script in windows task. If I use script by cygwin it's working well. If I use it by Windows task I'm get error Error : ERROR 2 (HY000) at line 2: File '.\xxx.csv' not found (Errcode: 2) Code Line : load data local infile './xxx.csv' REPLACE into... (16 Replies)
Discussion started by: karp
16 Replies