Padre::Task::Eval 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::Eval(3)  User Contributed Perl Documentation Padre::Task::Eval(3)

NAME
       Padre::Task::Eval - Task for executing arbitrary code via a string eval

SYNOPSIS
	 my $task = Padre::Task::Eval->new(
	     prepare => '1 + 1',
	     run     => 'my $foo = sub { 2 + 3 }; $foo->();',
	     finish  => '$_[0]->{prepare}',
	 );

	 $task->prepare;
	 $task->run;
	 $task->finish;

DESCRIPTION
       Padre::Task::Eval is a stub class used to implement testing and other
       miscellaneous functionality.

       It takes three named string parameters matching each of the three
       execution phases. When each phase of the task is run, the string will
       be eval'ed and the result will be stored in the same has key as the
       source string.

       If the key does not exist at all, nothing will be executed for that
       phase.

       Regardless of the execution result (or the non-execution of the phase)
       each phase will always return true. However, if the string eval throws
       an exception it will escape the task object (although when run properly
       inside of a task handle it should be caught by the handle).

METHODS
       This class contains now additional methods beyond the defaults provided
       by the Padre::Task API.

COPYRIGHT & 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 itself.

       The full text of the license can be found in the LICENSE file included
       with this module.

perl v5.14.1			  2011-06-18		  Padre::Task::Eval(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