fork download
  1. #!/usr/bin/perl
  2. @x = (1,2,3,4,5,6);
  3. map{$n += $_, print"$n\n"}@x;
  4.  
Success #stdin #stdout 0s 4832KB
stdin
Standard input is empty
stdout
1
3
6
10
15
21