On 1 Mar 2002 11:00:12 -0000
Rafael Garcia-Suarez <[EMAIL PROTECTED]> wrote:

: F . Xavier Noria wrote in perl.fwp:
: > Is there a way to list the symbols in the CORE package?
: 
: Symbols in the CORE "package" are (currently) the Perl keywords. E.g. :
: 
:     $ perl -le 'print 1 CORE::x 3'
:     111
: 
:     $ perl -le '$_=shift;CORE::y/a/b/;print' bar
:     bbr
: 
: Note that this is not documented.

That use of CORE is documented in the Camel book, isn't it? What do you
mean?

: To have the list of the perl keywords, a way to do it is to open the
: file keywords.h that must be installed somewhere on your disk
: (e.g. mine is at /usr/lib/perl5/5.6.0/i386-linux/CORE/keywords.h)
: and parse it.

Aha, I have read it, thank you very much. What a pitty, I was looking
for private or undocummented functions in Perl 5.6.1 for the previous
golf tournament, but if they exist it seems they are not there...
hmmmm.... I'll keep on searching for the next one :-).

-- fxn

Reply via email to