2 ''' $RCSfile: s2p.man,v $$Revision: 4.0.1.1 $$Date: 91/06/07 12:19:57 $
5 ''' Revision 4.0.1.1 91/06/07 12:19:57 lwall
6 ''' patch4: s2p now handles embedded newlines better and optimizes common idioms
8 ''' Revision 4.0 91/03/20 01:58:07 lwall
11 ''' Revision 3.0 89/10/18 15:35:09 lwall
14 ''' Revision 2.0 88/06/05 00:15:59 root
15 ''' Baseline version 2.0.
36 ''' Set up \*(-- to give an unbreakable dash;
37 ''' string Tr holds user defined translation string.
38 ''' Bell System Logo is used as a dummy character.
43 .if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
44 .if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
60 s2p - Sed to Perl translator
62 .B s2p [options] filename
65 takes a sed script specified on the command line (or from standard input)
66 and produces a comparable
68 script on the standard output.
76 specifies that this sed script was always invoked with a sed -n.
77 Otherwise a switch parser is prepended to the front of the script.
80 specifies that this sed script was never invoked with a sed -n.
81 Otherwise a switch parser is prepended to the front of the script.
83 The perl script produced looks very sed-ish, and there may very well be
84 better ways to express what you want to do in perl.
85 For instance, s2p does not make any use of the split operator, but you might
88 The perl script you end up with may be either faster or slower than the original
90 If you're only interested in speed you'll just have to try it both ways.
91 Of course, if you want to do something sed doesn't do, you have no choice.
92 It's often possible to speed up the perl script by various methods, such
93 as deleting all references to $\e and chop.
95 S2p uses no environment variables.
97 Larry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>
100 perl The perl compiler/interpreter
102 a2p awk to perl translator