[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux_var] [OT][PERL] Quale struttura dati?



>> > [cut]
>> > while ()
>> > {
>> > chomp;
>> > ($str, $banned) = split(/;/);
>> > push(@BANLIST,$str,$banned);
>> > }
>> > }
>> >
Prova con:
push(@BANLIST,[$str,$banned]);
dovrebbe fare quello che cerchi

>> > print "@BANLIST"; <---- Restituisce l'array multidim.
se ne hai la possibilita' usa:
use Data::Dumper;
print "\@BANLIST ".Dumper(\@BANLIST);
cosi' ti rendi facilmente conto della struttura dati

> Non trovo molta docs anche sul web... eppure e' un operazione base...
Io come documentazione uso:
http://perldoc.perl.org/index-language.html
http://perldoc.perl.org/functions/push.html

Ciao
Paolo

-- 
Per cancellare l'iscrizione: <talking-unsubscribe at ml.linuxvar.it>
Archivi web e configurazione: http://ml.linuxvar.it/ml/