Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Segmentation fault

by dasgar (Deacon)
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?


Comment on Re^3: Segmentation fault
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2014-09-22 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls