http://qs321.pair.com?node_id=752071

grashoper has asked for the wisdom of the Perl Monks concerning the following question:

I have a file which contains a date time stamp in the format day/month/yyyy h:m:s am or pm. I would like to do a search replace and insert date, then the time stamp back again, I would also like to figure out how to reverse the contents of a hash as my current hash is in the wrong order values,keys instead of keys,values. would something like this work?
while ( my ($key, $value) = each(%hash) ) { %copy=(my $value=>$key); }