<html>
<head>
<title>SWIG:Examples:perl5:variables</title>
</head>

<body bgcolor="#ffffff">

<tt>SWIG/Examples/perl5/variables/</tt>
<hr>

<H2>Wrapping C Global Variables</H2>

<p>
When a C global variable appears in an interface file, SWIG tries to
wrap it using a technique known as "variable linking."  The idea is
pretty simple---we try to create a Perl variable that magically
retrieves or updates the value of the underlying C variable when it is
accessed.  Click <a href="example.i">here</a> to see a SWI