Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Empyting an array inot multiple arrays

by clueless newbie (Hermit)
on Oct 27, 2011 at 17:20 UTC ( #934190=note: print w/ replies, xml ) Need Help??

in reply to Empyting an array inot multiple arrays

Offered for consideration --- Note it neither really creates the arrays @array1,@array2,@array3 nor does it really clear @array_original.

#!/usr/bin/perl use Data::Alias; use Data::Dumper; use strict; use warnings; my @Array; $Array[$_]=$_ for (0..29); alias my @Array_1=@Array[0..9]; alias my @Array_2=@Array[10..19]; alias my @Array_3=@Array[20..29]; warn Data::Dumper->Dump([\@Array,\@Array_1,\@Array_2,\@Array_3],[qw(*A +rray *Array_1 *Array_2 *Array_3)]);

Comment on Re: Empyting an array inot multiple arrays
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934190]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-12-01 06:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (795 votes), past polls