Penguin
Annotated edit history of s2p(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 S2P
2 !!!S2P
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 ENVIRONMENT
7 AUTHOR
8 FILES
9 SEE ALSO
10 DIAGNOSTICS
11 BUGS
12 ----
13 !!NAME
14
15
16 s2p - Sed to Perl translator
17 !!SYNOPSIS
18
19
20 __s2p [[options] filename__
21 !!DESCRIPTION
22
23
24 ''s2p'' takes a sed script specified on the command line
25 (or from standard input) and produces a comparable
26 ''perl'' script on the standard output.
27
28
29 __Options__
30
31
32 Options include:
33
34
35 __-D__
36
37
38 sets debugging flags.
39
40
41 __-n__
42
43
44 specifies that this sed script was always invoked with a
45 __sed -n__. Otherwise a switch parser is prepended to the
46 front of the script.
47
48
49 __-p__
50
51
52 specifies that this sed script was never invoked with a
53 __sed -n__. Otherwise a switch parser is prepended to the
54 front of the script.
55
56
57 __Considerations__
58
59
60 The perl script produced looks very sed-ish, and there may
61 very well be better ways to express what you want to do in
62 perl. For instance, s2p does not make any use of the split
63 operator, but you might want to.
64
65
66 The perl script you end up with may be either faster or
67 slower than the original sed script. If you're only
68 interested in speed you'll just have to try it both ways. Of
69 course, if you want to do something sed doesn't do, you have
70 no choice. It's often possible to speed up the perl script
71 by various methods, such as deleting all references to $\
72 and chop.
73 !!ENVIRONMENT
74
75
76 s2p uses no environment variables.
77 !!AUTHOR
78
79
80 Larry Wall larry@wall.org''''
81 !!FILES
82 !!SEE ALSO
83
84
85 perl The perl compiler/interpreter
86 a2p awk to perl translator
87 !!DIAGNOSTICS
88 !!BUGS
89 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.