Thanks to everybody who gave me a reply.
The problem already is solved..just one apt-get install python-dev and I got
install the inline-python.
Now, I ought like to know one thing..
I wrote a python method what return a list of tuple..when I try to get this
values in a array in perl. I don't know how recover the values..
I am posting the code ..maybe someone can help better with this
use Inline Python => <<'END';
def getsubnets(nome_shared):
from Host import Host
from Group import Group
from Subnet import Subnet
from Shared_Network import Shared_Network
from Dhcp import DHCP
DhcpFile="/etc/dhcp3/dhcpd.conf"
dhcp=DHCP()
arq=open(DhcpFile,"r")
dhcp=dhcp.ler_dhcpd(arq)
arq.close()
lista_subnets=dhcp.getSubnetsByDhcp(nome_shared)
* lista_sub_e_mask=[]*
for (s,m),subn in lista_subnets:
*lista_sub_e_mask.append(s,m)
* return *lista_sub_e_mask*
END
*my @subnets=getsubnets($nome_shared);
*In this last line ..how can I recover the values*?*What king of structure
could receive the returned value?
PS:when I change the line
*lista_sub_e_mask.append(s,m)
*to*
* *lista_sub_e_mask.append(s)*
I get the values in perl..but I need of both values..
Thanks
2008/11/12 Michael Peters <[EMAIL PROTECTED]>
> Stefan Seifert wrote:
>
> I wonder, how I can state such an external dependency. Would probably
>> improve the CPAN testers reports by far, because that's the number 1 problem
>> there, too.
>>
>
> You should look at Devel::CheckLib. It's designed to look for system libs
> and header files inside of a build (Makefile.PL or Build.PL).
>
> --
> Michael Peters
> Plus Three, LP
>
>
--
Júlio Cesar Bueno Cotta
Graduando em ciência da computação
Universidade Federal de Viçosa