| masup | somian, yes it worked: perl -e 'my $cmd = "diff <(sort file1) <(sort file2)"; printf "[%s]...\n", $cmd; exec "/bin/bash -c \"$cmd\"";' |
| threat2 | ofer0: so I want to sort the value of the inner hash, if they are equal, I want to sort by the key of the outer hash |
| masup | somian: also for system |
| mauke | threat2: that's the same as my %hash = (user1 => 'time', 3232 => 'user2', time => 1211); there is no inner hash |
| threat2 | mauke: hmmm |
| somian | Ahh, specifying the shell explicitly, good. |
| loiic | is there a way to say that you don't care that you re using an unitnitialized value in a concat and tell perl to process it as a ""? |
| ofer0 | threat2, you probably means { hash } ? |
| threat2 | mauke: my %hash = (); $hash{"user1"}{"time"} = 3232; $hash{"user2"}{"time"} = 3220; ofer0: --^ |
| mauke | threat2: eww |
| Casan | whoever: your intuition was perfect it was an address problem, the user had entered their name instead of email address where appropriate. |
| threat2 | mauke: yeah yeah |
| mauke | threat2: my %hash = (user1 => {time => 3232}, user2 => {time => 1211}); |
| threat2 | mauke: like I said, a hash of a hash mauke: ok thank you :) |
| whoever | Casan: usual bug, input is evil unless proven that it's valid ;) |
| ofer0 | threat2, now, what are you trying to do with the result ? threat2, I mean, if you assign it to a hash, it will be unsorted once again. |
| masup | somian: I didn't tried yet the environment variable ENV{SHELL}. |
| somian | It doesn't work |
| threat2 | ofer0: after I have finished populating the hash I want to sort it then print it to stdout |
| masup | somian: still the same error? |
| somian | Yes |
| threat2 | ofer0: are there any docs that give examples of sorting a hash of a hash? |
| mauke | you don't sort hashes |
| threat2 | ofer0: or would you like to give me an example? |
| mauke | sort takes and returns a list |
| ofer0 | threat2, perldoc perldsc |
| threat2 | oh ofer0: hmmmm, I will google for a html version of that ;) |
| ofer0 | http://perldoc.perl.org/perldsc.html |
| action | somian got kicked from ##c ... Zhivago is verrrrry angery with us, precioussss |
| somian | got kicked from ##c ... Zhivago is verrrrry angery with us, precioussss |
| masup | somian: in my real case (and not the sample test), it didn't worked too. Let me see the differences... |
| threat2 | ofer0: yay |
| ofer0 | threat2, that's not what you want you can write a function for this one |
| threat2 | ofer0: ok so I need to write a function to do it? |
| ofer0 | threat2, yes. |