4 # I thought that I would try out some perl 5 features for the first time.
5 # So I wrote a small program, included below. It died, and the partial
6 # output looks very much like what I wanted to accompish. Even if the program
7 # had not died, there is still the problem that no output was given under the
10 # Since the output is close, perhaps a bug lurks within...(?) I'm using the
11 # compiled binary provided in the perl5a6 tar file. I tried to write this
12 # post so it could be given to perl with the -x flag. You should get the
13 # output I describe here --
15 # jbence@math.ucla.edu
19 # Pushed ege into @sonia
20 # Pushed caflisch into @joshua
21 # Pushed catalina into @julia
22 # Pushed lunnon into @sonia
23 # Pushed m270alg into @redwood
24 # Pushed harten into @joshua
25 # Pushed ycc into @joshua
26 # Pushed m270wsc into @redwood
46 ($login,$host) = split;
47 push(@{$hostref{$host}},$login); # t/op/ref.t (22) suggests this is ok.
48 print "Pushed $login into \@$host\n";
53 while ( ($host,$ref) = each(%hostref)) {
56 foreach $person (@{$ref}) {
59 if ($count % 5 == 0) { print "\n "; }