Håkon Hægland
Håkon Hægland

Reputation: 40778

How to find source code of Perl module using XSLoader?

I would like to view the source code of I18N::Langinfo. If I go to metacpan.org I can find the source at

https://metacpan.org/source/RJBS/perl-5.22.0/ext/I18N-Langinfo/Langinfo.pm

but it is just a wrapper that calls XSLoader::load();. If I type perldoc -l I18N::Langinfo I get /usr/lib/x86_64-linux-gnu/perl/5.20/I18N/Langinfo.pm but this is just the same file as on metacpan.org, and there is no other files in that directory either.

Where is the source code located?

Upvotes: 1

Views: 235

Answers (1)

ikegami
ikegami

Reputation: 386361

In the distribution: Langinfo.xs. No use installing the source!

I18N::Langinfo's langinfo simply exposes C function nl_langinfo.

Upvotes: 2

Related Questions