in reply to Re^2: Turning a hash into a line of links
in thread Turning a hash into a line of links
In fact that's probably better than the key-mangling for this number of keys too.my @sections = ( [DMA => 'dma'], [FST => 'dma/fst'], [MRA => 'dma/mra'], [BKS => 'bks'], [MSU => 'dma/msu'], [FMA => 'dma/fma'], [FOMC => 'dma/FOMC'], ); my @la = map { a( {-href => "/$_->[1]"}, "$_->[0] HOME" ) } @sections; print join "\n|", @la;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Turning a hash into a line of links
by johngg (Canon) on Dec 13, 2006 at 11:36 UTC |