> I have an example from Shawn C. from another thread, presented here
> out of context.  The code does just what he meant it to do.
> It inverts a hash.

Just curious if there is a particular reason Shawn did not use the reverse 
function:

my %hash  = (
          './b/fb'        => 'fb',
          './b/c/fd'      => 'fd',
          './b/l/c/f2'    => 'f2',
          './b/g/f/r/fc'  => 'fc',
          './b/g/h/r/fb'  => 'fb'

      );

my %inv_hash = reverse %hash;



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to