Example of hash and array movement correct?

2005-02-18 Thread Bastian Angerstein
Hello, I am looking for ways to move data between array and hashes. Does anybody has a better way or idea to do some of this: Example 1: @indatas = $datas [0 .. 4]; Example 2: $nkey = $dataln[3] . $dataln[4]; Example 3: $base{$bv[0]} = [ $bv[1], $bv[2], $bv[3], $bv[4] ];

RE: Example of hash and array movement correct?

2005-02-18 Thread Larsen, Errin M HMMA/IT
> Subject: Example of hash and array movement correct? > > > > Hello, Hello > I am looking for ways to move data > between array and hashes. > In all 3 of your examples, you don't show us the declaration of your variables nor how they are fille

RE: Example of hash and array movement correct?

2005-02-18 Thread Charles K. Clarkson
Bastian Angerstein <[EMAIL PROTECTED]> wrote: : Hello, : I am looking for ways to move data : between array and hashes. : : Does anybody has a better way or idea to do some of this: Not really. What you have works, though the first example will throw a warning under strictures and wa