sub cglobal

Documentation for sub cglobal, assembled from the following types:

language documentation Native Calling Interface

From Native Calling Interface

(Native Calling Interface) sub cglobal

sub cglobal($libname$symbol$target-typeis export is rw

This returns a Proxy object that provides access to the extern named $symbol that is exposed by the specified library. The library can be specified in the same ways that they can be to the native trait.