[BACK]Return to nviperl.pod CVS log [TXT][DIR] Up to [local] / src / usr.bin / vi / perl_api

File: [local] / src / usr.bin / vi / perl_api / Attic / nviperl.pod (download)

Revision 1.1, Fri Nov 26 22:49:09 1999 UTC (24 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7

o Update README files etc. from nvi-1.79 so they have the correct info
o make port.h empty since we there is nothing we lack
o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros
o add perl api support since we have libperl (off by default)

=head1 NAME

nviperl - nvi with embedded perl

=head1 SYNOPSIS

    :perl require 'wc.pl'
    :perl wc
    :,$perldo $_=reverse($_)

=head1 DESCRIPTION

nvi with embedded perl allows you to run perl commands from within nvi.
Two additional commands are made available when you enable the perl
interpreter:

=over 8

=item * perl cmd

The perl command passes the specified commands to the perl interpreter.
The C<$VI::ScreenId>, C<$VI::StartLine> and C<$VI::StopLine> are set.
To find out how to maniplulate the nvi screens, see L<VI>.

=item * perldo cmd

The perldo command runs the specified commands on each line of the range
(every line of the file if no range specified).  Before running the
command the line is copied into $_.  If the command returns a true value
the line is replaced by the new value of $_.

The perldo commando does B<not> set the C<VI> variables.  (If you think
this is a bad idea, tell me.)

=back

=head1 SEE ALSO

L<VI>

=head1 AUTHOR

Sven Verdoolaege <skimo@dns.ufsia.ac.be>