Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    my $x = 3;
    
    dd [(map{@;==$x?do{$;=[@;];@;=($_);$;}:do{push(@;,$_);()}}@a),[@;]];
    
  2. or download this
    [["a", "b", "c"], ["e", 1, 2], [3, 4, 5], [3, "f"]]