Perl/Variabili hash: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Riga 49:
Vediamo ora come "gestire" queste entità.
Per ottenere l'elenco delle chiavi si usa '''keys'''
print (keys %a)."\n";
Line 55 ⟶ 56:
'''Da notare che''' è sicuro che ci siano tutte le chiavi ma l'ordine non è mai assicurato.
Per ottenere i valori si usa '''values'''
print (values %a)."\n";
|