#!/usr/bin/perl -w use strict; my $Usage = <; my @side = split /\s+/, <>; for my $t ( @top ) { for my $s ( @side ) { print "$t$s\n"; } }