Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: Segmentation fault

by dasgar (Priest)
on Jul 03, 2012 at 15:48 UTC ( #979739=note: print w/replies, xml ) Need Help??

in reply to Re^2: Segmentation fault
in thread Segmentation fault

Every CPAN module has "C/C++ (so called "XS") code"? Perhaps I don't know what I'm talking about, but aren't there "pure Perl" modules in CPAN that don't have any C/C++/XS code in them? (i.e. only Perl code)

Actually, after re-reading your wording, maybe I misunderstood you. Are you saying "every module in CPAN" has C/C++ code or are you just talking about the CPAN module itself that has C/C++ code?

Replies are listed 'Best First'.
Re^4: Segmentation fault
by sundialsvc4 (Abbot) on Jul 03, 2012 at 20:19 UTC

    There are some “Pure Perl” packages out there, certainly.   But if you’re getting a segmentation fault, you are definitely (directly or indirectly...) dealing with one that is not.

    Many Perl packages consist partially or entirely of “wrappers for” existing libraries.   (e.g. XML::LibXML).   Others (YAML::Syck) do it for speed.   So, even though you as a Perl programmer are simply dealing with “a nice, well-behaved Perl package,” in the case of some packages there are lower-level calls being made under the hood.   The source-code of the package therefore consists, not only of Perl code, but also C/C++ code and the necessary “plumbing” needed to connect one to the other.   Just install the package in the usual way, and, presto, it all just happens.   It’s kind of like Laws and Sausages:   they work (well, sausages do, anyway), but you really don’t want to know how they’re made ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979739]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-02-23 07:33 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (300 votes). Check out past polls.