icon Top 9 categories map      RocketAware >

s2p(1)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: FreeBSD RedHat Others






S2P(1)           Perl Programmers Reference Guide          S2P(1)


NAME
       s2p - Sed to Perl translator



SYNOPSIS
       s2p [options] filename

DESCRIPTION
       S2p takes a sed script specified on the command line (or
       from standard input) and produces a comparable perl script
       on the standard output.

       Options

       Options include:

       -D<number>
            sets debugging flags.

       -n   specifies that this sed script was always invoked
            with a sed -n.  Otherwise a switch parser is
            prepended to the front of the script.

       -p   specifies that this sed script was never invoked with
            a sed -n.  Otherwise a switch parser is prepended to
            the front of the script.

       Considerations

       The perl script produced looks very sed-ish, and there may
       very well be better ways to express what you want to do in
       perl.  For instance, s2p does not make any use of the
       split operator, but you might want to.

       The perl script you end up with may be either faster or
       slower than the original sed script.  If you're only
       interested in speed you'll just have to try it both ways.
       Of course, if you want to do something sed doesn't do, you
       have no choice.  It's often possible to speed up the perl
       script by various methods, such as deleting all references
       to $\ and chop.

ENVIRONMENT
       S2p uses no environment variables.

AUTHOR
       Larry Wall <larry@wall.org>

FILES
SEE ALSO
        perl   The perl compiler/interpreter

        a2p    awk to perl translator





31/Oct/1999            perl 5.005, patch 03                     1





S2P(1)           Perl Programmers Reference Guide          S2P(1)


DIAGNOSTICS
BUGS























































31/Oct/1999            perl 5.005, patch 03                     2



Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
PERL sources for s2p(1) (at OpenBSD cvsweb)


[Overview Topics]

Up to: PERL


RocketLink!--> Man page versions: FreeBSD RedHat Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > s2p.1/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments