Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Shifting of 2D array slices

by davidrw (Prior)
on Dec 07, 2008 at 01:22 UTC ( [id://728625]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my @bigarray = (
    ...
    print Dumper \@bigarray;  # before
    ...
    print Dumper \@bigarray;  # after
    
  2. or download this
    splice @$_, 0, 1, split /\*/, $_->[0] for @bigarray;
    
  3. or download this
    foreach my $arr ( @bigarray ){
      my $item = shift @$arr;
      unshift @$arr, split /\*/, $item;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found