Padre::Task::PPI man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Padre::Task::PPI(3)   User Contributed Perl Documentation  Padre::Task::PPI(3)

NAME
       Padre::Task::PPI - Generic PPI background processing task

SYNOPSIS
	 package Padre::Task::MyFancyTest;

	 use base 'Padre::Task::PPI';

	 # Will be called after ppi-parsing:
	 sub process {
	     my $self	= shift;
	     my $ppi	= shift or return;
	     my $result = ...expensive_calculation_using_ppi...
	     $self->{result} = $result;
	     return;
	 }

	 1;

	 # elsewhere:

	 Padre::Task::MyFancyTest->new(
	     text => 'parse-this!',
	 )->schedule;

DESCRIPTION
       This is a base class for all tasks that need to do expensive
       calculations using PPI. The class will setup a PPI::Document object
       from a given piece of code and then call the "process_ppi" method on
       the task object and pass the PPI::Document as first argument.

       You can either let "Padre::Task::PPI" fetch the Perl code for parsing
       from the current document or specify it as the ""text"" parameter to
       the constructor.

       Note: If you don't supply the document text and there is no currently
       open document to fetch it from, "new()" will simply return the empty
       list instead of a "Padre::Task::PPI" object.

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-2011 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.1			  2011-06-18		   Padre::Task::PPI(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net