Thank you, David, for giving me a fish, and Bob, for teaching me to
fish. It works like a charm.
Thanks, again.
-Kevin Zembower
>>> Bob Showalter <[EMAIL PROTECTED]> 12/19/01 11:21AM >>>
> -Original Message-
> From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December
> -Original Message-
> From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: Randomizing lines in a file: problems with hashes
>
>
> I need to take a file of alphabetized lines (one line per record) and
> randomiz
Change
%randomarray = ($key => $_);
to
$randomarray{$key} = $_;
-David
On Wed, 2001-12-19 at 11:05, KEVIN ZEMBOWER wrote:
> I need to take a file of alphabetized lines (one line per record) and
> randomize it. I thought one way of doing this was to read in the file,
> one line at a tim