Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
%auto = (GM => 'Caprice',Ford => 'Pinto',Honda => 'Civic',Toyota => 'T +acoma'); foreach $key (keys %auto) { print "$key $auto{$key}\n"; } format HEADER = MANUFACTER----MODEL . format FLOR = @<<<<<<< @######## $key, $value . write while (($key,$value) = each %auto);
I want it to output like this:Toyota Tacoma Ford Pinto Honda Civic GM Caprice
MANUFACTURER MODEL ----------------------- Toyota Tacoma Ford Pinto Honda Civic GM Caprice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Format with hash
by VSarkiss (Monsignor) on May 15, 2002 at 15:03 UTC |