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 warnings.


:   Example 1:
:   @indatas = $datas [0 .. 4];

    Better written as:

 @indatas = @datas[0 .. 4];


:   Example 2:
:   $nkey = $dataln[3] . $dataln[4];

    Looks okay.


:   Example 3:
:   $base{$bv[0]} = [ $bv[1], $bv[2], $bv[3], $bv[4] ];

    Less typing:

    $base{$bv[0]} = [ @bv[1 .. 4] ];

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to