Help for this page

Select Code to Download


  1. or download this
    for(@a1=`cat file`;$a[0]=shift @a1;@a1)
    {
      for(@a2=@b;$a[1]=shift @a2;@a2) # could be "for(;$a[1]=shift @b;@b)"
    + if you don't care about emptying @b
    ...
        }
      }
    }
    
  2. or download this
    sub with {for (@{$_[1]}){$_[0] = $_;$_[2]();}}
    sub in { \@_  } 
    sub run(&) { $_[0] }
    
  3. or download this
    # parenthesis mandatory after in, bad idea after with and the commas c
    +an't be ommited
    with $a[0], in(qw/Bonjour Bonsoir/), 
    run {
    ...
            say "@a";
        }; # semi-colon mandatory
    }; # same here
    
  4. or download this
    Bonjour Paul
    Bonjour Jack
    Bonjour Lord Voldemort
    Bonsoir Paul
    Bonsoir Jack
    Bonsoir Lord Voldemort