The bind method is specific to Inline.pm. See Inline.pod: The bind() Function An alternative to using the BEGIN block method is to specify the source code at run time using the ʼInline->bind()ʼ method. (This is one of the interface exceptions mentioned above) The "bind()" method takes the same arguments as ʼuse Inline ...ʼ.
my $code = <<END; /* Java code goes here ... */ END Inline->bind(Java => $code); You can think of "bind()" as a way to "eval()" code in other pro- gramming languages. Although bind() is a powerful feature, it is not recommended for use in Inline based modules. In fact, it wonʼt work at all for installable modules. See instructions below for creating modules with Inline. Patrick On Thu, 2004-03-25 at 17:32, Wu, Gang (Steven) wrote: > Hi, Patrick, > > I tried to look up the bind() function you mentioned at perldoc.com, but > only found that it's meant for networking purposes. Do you have a better > place that I can take a look? > > Thanks! > > Steven > > > -----Original Message----- > From: Patrick LeBoutillier [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 5:13 AM > To: Wu, Gang (Steven) > Cc: [EMAIL PROTECTED] > Subject: Re: How do I disable modules in a script > > Hi, > > Check out bind() function that allows you to do all the Inline stuff at > runtime. > > Patrick >