configure.in: specify config_aux_dir
[nvi.git] / perl_api / nviperl.pod
blob432fbe985bd2b4036a889f0210af98eb114ca675
1 =head1 NAME
3 nviperl - nvi with embedded perl
5 =head1 SYNOPSIS
7     :perl require 'wc.pl'
8     :perl wc
9     :,$perldo $_=reverse($_)
11 =head1 DESCRIPTION
13 nvi with embedded perl allows you to run perl commands from within nvi.
14 Two additional commands are made available when you enable the perl
15 interpreter:
17 =over 8
19 =item * perl cmd
21 The perl command passes the specified commands to the perl interpreter.
22 The C<$VI::ScreenId>, C<$VI::StartLine> and C<$VI::StopLine> are set.
23 To find out how to maniplulate the nvi screens, see L<VI>.
25 =item * perldo cmd
27 The perldo command runs the specified commands on each line of the range
28 (every line of the file if no range specified).  Before running the
29 command the line is copied into $_.  If the command returns a true value
30 the line is replaced by the new value of $_.
32 The perldo commando does B<not> set the C<VI> variables.  (If you think
33 this is a bad idea, tell me.)
35 =back
37 =head1 SEE ALSO
39 L<VI>
41 =head1 AUTHOR
43 Sven Verdoolaege <skimo@kotnet.org>