Sorry,but I guess..didn't understand.. what is the right way to ,for example, print the values of each position of this array? I let in this way "my @subnets=getsubnets($nome_shared);" and I tried the following code..but that had no function.. foreach ($subn,$mask) (@subnets){
print '<INPUT type="radio" checked name="subnet" value="'.$subn.'"><A href="/cgi-bin/EditSubnet.pl?subnet='.$subn.'">'.$subn.'</A>'; } just to you understand..the list of tuple has this format [(string1,string2),(string3,string4),(string5,string6),(string7,string8)] How can I have access to that strings? 2008/11/12 Stefan Seifert <[EMAIL PROTECTED]> > On Wednesday, 12. November 2008, Júlio Cesar Bueno Cotta wrote: > > 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.. > > Tuples and lists both get converted to arrays or array references when > entering the Perl world. > > > *my @subnets=getsubnets($nome_shared); > > @subnets should contain array refs at this point. > Btw. py_call_function checks the caller context, so if you want an array > reference instead of the array, you can get that as well: > my $subnets = getsubnets($nome_shared); > > Regards, > Stefan > -- Júlio Cesar Bueno Cotta Graduando em ciência da computação Universidade Federal de Viçosa