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