1: 2: 3: 4: 5: 6: 7: 8: 9:
#!/usr/local/bin/perl use strict; use warnings; my $num = shift or die "Usage: $0 <number>\n"; for my $i (1..$num) { my @arr; push @arr, "$_;123;456;789" for (1..$i); print "$i|", join('~', @arr), "\n"; }