Section B.23. Dynamic Loading


B.23. Dynamic Loading

The basic idea of dynamic loading is that your program decides at runtime that it needs more functionality than what's currently available, so it loads it up and keeps running. You can always dynamically load Perl code, but it's more interesting to dynamically load a binary extension.[*] This is how non-Perl modules are made.

[*] Dynamic loading of binary extensions is available if your system supports that. If it doesn't, you can compile the extensions statically, meaning you can make a Perl binary with the extension built-in, ready for use.



Learning Perl
Learning Perl, 5th Edition
ISBN: 0596520107
EAN: 2147483647
Year: 2003
Pages: 232

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net