in reply to Ways to delete start of string

As written:

Rate casethree casetwo caseone casefour casethree 890174/s -- -3% -26% -34% casetwo 919255/s 3% -- -24% -32% caseone 1205935/s 35% 31% -- -11% casefour 1357009/s 52% 48% 13% --

Moving casefour to the start of the file (as the first declared subroutine):

Rate casethree casetwo casefour caseone casethree 836916/s -- -8% -31% -33% casetwo 908163/s 9% -- -25% -28% casefour 1215803/s 45% 34% -- -3% caseone 1255655/s 50% 38% 3% --

Moving casetwo to the start of the file:

Rate casethree casetwo caseone casefour casethree 870542/s -- -4% -27% -36% casetwo 908848/s 4% -- -23% -33% caseone 1187190/s 36% 31% -- -13% casefour 1362630/s 57% 50% 15% --

This is Perl 5.8.8.

Replies are listed 'Best First'.
Re^2: Ways to delete start of string
by hsmyers (Canon) on May 24, 2008 at 20:22 UTC
    If you just rearrange the hash to reverse order from the original you also get different answers:
    Rate caseone casethree casetwo casefour caseone 304004/s -- -10% -20% -34% casethree 337272/s 11% -- -11% -26% casetwo 379359/s 25% 12% -- -17% casefour 458814/s 51% 36% 21% --

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."