1CPANPLUS::Backend::RV(3pPme)rl Programmers Reference GuiCdPeANPLUS::Backend::RV(3pm)
2
3
4

NAME

6       CPANPLUS::Backend::RV
7

SYNOPSIS

9           ### create a CPANPLUS::Backend::RV object
10           $backend_rv     = CPANPLUS::Backend::RV->new(
11                                       ok          => $boolean,
12                                       args        => $args,
13                                       rv          => $return_value
14                                       function    => $calling_function );
15
16           ### if you have a CPANPLUS::Backend::RV object
17           $passed_args    = $backend_rv->args;    # args passed to function
18           $ok             = $backend_rv->ok;      # boolean indication overall
19                                                   # result of the call
20           $function       = $backend_rv->fucntion # name of the calling
21                                                   # function
22           $rv             = $backend_rv->rv       # the actual return value
23                                                   # of the calling function
24

DESCRIPTION

26       This module provides return value objects for multi-module calls to
27       CPANPLUS::Backend. In boolean context, it returns the status of the
28       overall result (ie, the same as the "ok" method would).
29

METHODS

31   new( ok => BOOL, args => DATA, rv => DATA, [function => $method_name] )
32       Creates a new CPANPLUS::Backend::RV object from the data provided.
33       This method should only be called by CPANPLUS::Backend functions.  The
34       accessors may be used by users inspecting an RV object.
35
36       All the argument names can be used as accessors later to retrieve the
37       data.
38
39       Arguments:
40
41       ok  Boolean indicating overall success
42
43       args
44           The arguments provided to the function that returned this rv
45           object.  Useful to inspect later to see what was actually passed to
46           the function in case of an error.
47
48       rv  An arbitrary data structure that has the detailed return values of
49           each of your multi-module calls.
50
51       function
52           The name of the function that created this rv object.  Can be
53           explicitly passed. If not, "new()" will try to deduce the name from
54           "caller()" information.
55

BUG REPORTS

57       Please report bugs or other issues to <bug-cpanplus@rt.cpan.org<gt>.
58

AUTHOR

60       This module by Jos Boumans <kane@cpan.org>.
61
63       The CPAN++ interface (of which this module is a part of) is copyright
64       (c) 2001 - 2007, Jos Boumans <kane@cpan.org>. All rights reserved.
65
66       This library is free software; you may redistribute and/or modify it
67       under the same terms as Perl itself.
68
69
70
71perl v5.12.4                      2011-06-07        CPANPLUS::Backend::RV(3pm)
Impressum