Padre::Task::LWP(3pm) User Contributed Perl Documentation Padre::Task::LWP(3pm)NAME
Padre::Task::LWP - Generic HTTP client background processing task
SYNOPSIS
# Fire and forget HTTP request
Padre::Task::LWP->new(
request => HTTP::Request->new(
GET => 'http://perlide.org',
),
)->schedule;
DESCRIPTION
Sending and receiving data via HTTP.
METHODS
new
my $task = Padre::Task::LWP->new(
method => 'GET',
url => 'http://perlide.org',
);
The "new" constructor creates a Padre::Task for a background HTTP request.
It takes a single addition parameter "request" which is a fully-prepared HTTP::Request object for the request.
Returns a new Padre::Task::LWP object, or throws an exception on error.
request
The "request" method returns the HTTP::Request object that was provided to the constructor.
response
Before the "run" method has been fired the "response" method returns "undef".
After the "run" method has been fired the "response" method returns the HTTP::Response object for the LWP::UserAgent request.
Typically, you would use this in the "finish" method for the task, if you wish to take any further actions in Padre based on the result of
the HTTP call.
SEE ALSO
This class inherits from "Padre::Task" and its instances can be scheduled using "Padre::TaskManager".
The transfer of the objects to and from the worker threads is implemented with Storable.
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::LWP(3pm)
Check Out this Related Man Page
Padre::Transform(3pm) User Contributed Perl Documentation Padre::Transform(3pm)NAME
Padre::Transform - Padre Document Transform API
DESCRIPTION
This is the base class for the Padre transform API.
I'll document this more later...
-- Adam K
METHODS
new
A default constructor for transform objects.
Takes arbitrary key/value pair parameters and returns a new object.
scalar_delta
my $delta = $transform->scalar_delta($input_ref);
The "scalar_delta" method takes a reference to a "SCALAR" as the only parameter and changes the document.
If the transform class does not implement a "scalar_delta" itself the default implementation will pass the call through to "scalar_scalar"
and then convert the result to a Padre::Delta object itself.
Returns a new Padre::Delta as output, or throws an exception on error.
scalar_scalar
my $output_ref = $transform->scalar_scalar($input_ref);
The "scalar_scalar" method takes a reference to a "SCALAR" as the only parameter and changes the document.
Returns a new reference to a "SCALAR" as output, false if there is no change to the document, or throws an exception on error.
COPYRIGHT & 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 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::Transform(3pm)
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)
Is it possible to set a task to happen in the future? Say I want to log-off only after 10 hours of being logged on with out doing any activity in between? (2 Replies)
: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)
Hi
I need some help with a task, i am an absolute newbie to any form of shell scripting and request guidance.
Task:
1. Read a config file in form of name value pair
ex
host=www.test.com
port=8080
binding="dynamic" or "other" or "something else"
key1=value1
key2=value2
key3=value4... (4 Replies)
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)
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)
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)
Hi experts,
I have a problem with the below shell task:
I need to modify the file creatin a paired row , per each row
which matches filter (e.g. number of nonempty columns = 5)
Output should look like this:
second row is original one from the input,
first row(red) is pairing row, it's... (29 Replies)
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)
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)
I have a simple task for my school work. I'm new with unix, so i need help.
I need to write a scenario. Task is. From created txt file read first 3 words and create a 3 catalogs with those 3 words. 2 of those new catalogs should be transferred to other directory. If someone could help me just... (1 Reply)
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)
Hi i have recently started learning Bash scripting to learn a new skill.
My boss has assigned me a task but i am struggling to complete it would really be thankful for some help ill put what i have so far:
Test1-bible is the directory and each chapter of the bible is a sub-directory hence i... (1 Reply)