Source for the open perl function

H

himanshu.garg

Hello,

Could you tell me which file in the perl sources has the source
code for the perl open function, please.

Thank You,
Himanshu
 
B

Ben Morrow

Quoth (e-mail address removed):
Could you tell me which file in the perl sources has the source
code for the perl open function, please.

In 5.8 and 5.10, the actual open function is pp_open in pp_sys.c, but
the bulk of the work is done by Perl_do_openn in doio.c. Note that
understanding either of these functions will require a working knowledge
of the perl5 internals: the perl source makes heavy use of macros, which
often do things you weren't entirely expecting.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top