Re: output table with variable data

2003-02-19 Thread Luiz Fernando B. Ribeiro
Hi, Your aproaching is confusing and don't use the features Embperl provide you :) Use Embperl [$ subs $] when you need to output data and when it is not possible use print OUT inside your subs to print data in the correct place; About CGI.pm, you dont't need it when using Embperl. Try to use t

Re: output table with variable data

2003-02-19 Thread Ville Jungman
sorry i didn't read the whole question... interfacelist should be ok if your sub is like this (look at my previous email): [* sub xxx{ *] [- (@interfacelist)=@_; -] ... [+ $interfacelist[0] +] ... [* } *] there might be better ways to do it, but i know nothing about them. Hope this help

Re: output table with variable data

2003-02-19 Thread Ville Jungman
i'm not sure if You already got good solutions for Your problem but i think You could call the sub with [- ... -]; like this: [- interface_list (@interfacelist); -] ...when the sub is like this (notice it's done without using print-command - i think it might(?) mess your things up or at least it

Re: output table with variable data

2003-02-19 Thread Philip M. Gollucci
First of all, you probably want to pass the array by reference, but I think you want a hash reference in reality. aka print &interface_list(\%interfacelist); next you actually need to assign it to a local var in the function. Third, use CGI.pm or some sub class for the love of god. Next your don