This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update to match new home of Pod::Functions.
[perl5.git] / keywords.pl
CommitLineData
a0d0e21e
LW
1#!/usr/bin/perl
2
3open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
4select KW;
5
6# Read & print data.
7
8$keynum = 0;
9while (<DATA>) {
10 chop;
11 next unless $_;
12 next if /^#/;
13 ($keyword) = split;
14 print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
15}
16
17###########################################################################
18sub tab {
19 local($l, $t) = @_;
20 $t .= "\t" x ($l - (length($t) + 1) / 8);
21 $t;
22}
23###########################################################################
24__END__
25
26NULL
27__LINE__
28__FILE__
e50aee73 29__DATA__
a0d0e21e
LW
30__END__
31AUTOLOAD
32BEGIN
33CORE
34DESTROY
35END
36EQ
37GE
38GT
39LE
40LT
41NE
42abs
43accept
44alarm
45and
46atan2
47bind
48binmode
49bless
50caller
51chdir
52chmod
53chomp
54chop
55chown
56chr
57chroot
58close
59closedir
60cmp
61connect
62continue
63cos
64crypt
65dbmclose
66dbmopen
67defined
68delete
69die
70do
71dump
72each
73else
74elsif
75endgrent
76endhostent
77endnetent
78endprotoent
79endpwent
80endservent
81eof
82eq
83eval
84exec
85exists
86exit
87exp
88fcntl
89fileno
90flock
91for
92foreach
93fork
94format
95formline
96ge
97getc
98getgrent
99getgrgid
100getgrnam
101gethostbyaddr
102gethostbyname
103gethostent
104getlogin
105getnetbyaddr
106getnetbyname
107getnetent
108getpeername
109getpgrp
110getppid
111getpriority
112getprotobyname
113getprotobynumber
114getprotoent
115getpwent
116getpwnam
117getpwuid
118getservbyname
119getservbyport
120getservent
121getsockname
122getsockopt
123glob
124gmtime
125goto
126grep
127gt
128hex
129if
130index
131int
132ioctl
133join
134keys
135kill
136last
137lc
138lcfirst
139le
140length
141link
142listen
143local
144localtime
145log
146lstat
147lt
148m
149map
150mkdir
151msgctl
152msgget
153msgrcv
154msgsnd
155my
156ne
157next
158no
159not
160oct
161open
162opendir
163or
164ord
165pack
166package
167pipe
168pop
169pos
170print
171printf
c07a80fd 172prototype
a0d0e21e
LW
173push
174q
175qq
176quotemeta
177qw
178qx
179rand
180read
181readdir
182readline
183readlink
184readpipe
185recv
186redo
187ref
188rename
189require
190reset
191return
192reverse
193rewinddir
194rindex
195rmdir
196s
197scalar
198seek
199seekdir
200select
201semctl
202semget
203semop
204send
205setgrent
206sethostent
207setnetent
208setpgrp
209setpriority
210setprotoent
211setpwent
212setservent
213setsockopt
214shift
215shmctl
216shmget
217shmread
218shmwrite
219shutdown
220sin
221sleep
222socket
223socketpair
224sort
225splice
226split
227sprintf
228sqrt
229srand
230stat
231study
232sub
233substr
234symlink
235syscall
c07a80fd 236sysopen
a0d0e21e
LW
237sysread
238system
239syswrite
240tell
241telldir
242tie
c07a80fd 243tied
a0d0e21e
LW
244time
245times
246tr
247truncate
248uc
249ucfirst
250umask
251undef
252unless
253unlink
254unpack
255unshift
256untie
257until
258use
259utime
260values
261vec
262wait
263waitpid
264wantarray
265warn
266while
267write
268x
269xor
270y