In Native calling interface§

See primary documentation in context for 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.