1App::Rad::Include(3)  User Contributed Perl Documentation App::Rad::Include(3)
2
3
4

NAME

6       App::Rad::Include - 'include' command extension for App::Rad
7

VERSION

9       Version 0.01
10

SYNOPSIS

12       'include' is an opt-in command for you App::Rad programs (myapp.pl):
13
14           use App::Rad qw(include);  # add the 'include' command
15           App::Rad->run();
16
17       and now you can turn your one-liners (e.g:)
18
19           [user@host]$ perl -i -pe 's/\r//' file.txt
20
21       into nice scalable commands, simply replacing 'perl' for 'yourapp
22       include <NAME>'
23
24           [user@host]$ myapp.pl include dos2unix -i -pe 's/\r//'
25
26       and there you go, a brand new 'dos2unix' command:
27
28           [user@host]$ myapp.pl dos2unix file.txt
29

DESCRIPTION

31       This is an internal module for App::Rad and should not be used
32       separately. Please refer to App::Rad for further documentation.
33

INTERNAL METHODS

35   load
36       Loads the module into App::Rad
37
38   include
39       Translates perl one-liner into self-contained command (subroutine) and
40       adds it to your App::Rad program.
41

DEPENDENCIES

43       ·   O, which is core in Perl 5.8.
44
45       ·   B::Deparse, also core in 5.8.
46
47       ·   Perl::Tidy (optional)
48

AUTHOR

50       Breno G. de Oliveira, "<garu at cpan.org>"
51

ACKNOWLEDGEMENTS

53       The one-liner conversion and beautification was *much* easened because
54       of the nice "O" , "B::Deparse" and "Perl::Tidy" modules. So many thanks
55       to Malcolm Beattie, Nicholas Clark, Stephen McCamant, Steve Hancock,
56       and everyone that helped those projects.
57
59       Copyright 2008 Breno G. de Oliveira "<garu at cpan.org>". All rights
60       reserved.
61
62       This module is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself. See perlartistic.
64

DISCLAIMER OF WARRANTY

66       BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
67       FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
68       WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
69       PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
70       EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
71       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
72       ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
73       YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
74       NECESSARY SERVICING, REPAIR, OR CORRECTION.
75
76       IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
77       WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
78       REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
79       TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
80       CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
81       SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
82       RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
83       FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
84       SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
85       DAMAGES.
86
87
88
89perl v5.28.1                      2008-12-21              App::Rad::Include(3)
Impressum