develooper Front page | perl.beginners | Postings from April 2002

Re: Array question

Thread Previous | Thread Next
From:
drieux
Date:
April 1, 2002 12:44
Subject:
Re: Array question
Message ID:
21BCA7EB-45B1-11D6-B31E-0030654D3CAE@wetware.com

On Monday, April 1, 2002, at 11:11 , Aman Raheja wrote:

> $array-prob.pl <datafile>

p1: I loved the

	$field{$_}++;

p2: but since you have stashed it all in a Hash, why not
		unpack the hash with
		
		my @arr = keys(%field);

the counter proposal -

http://www.wetware.com/drieux/CS/lang/Perl/Beginners/array-prob.txt

ciao
drieux

---


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About