Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
so, some are KB -> KB, some are KB -> GB etc. I was wondering, if there is a fast way to create a 3rd column, with their difference, in the respective unit. The only way I can think of is writing if statements to check what kind of unit I have and then compare. But maybe it can be done faster somehow? Thanks!324K 324K 440K 533K 23T 224G 42G 42G 1.9T 709G 294K 294K 684K 684K 492K 492K 62M 64M 48K 41M 34M 433K 317K 812K
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More elegant way than multiple "if"?
by tobyink (Canon) on Nov 28, 2019 at 14:53 UTC | |
|
Re: More elegant way than multiple "if"?
by GrandFather (Saint) on Nov 28, 2019 at 20:53 UTC | |
|
Re: More elegant way than multiple "if"?
by syphilis (Archbishop) on Nov 29, 2019 at 02:31 UTC | |
|
Re: More elegant way than multiple "if"?
by tybalt89 (Monsignor) on Nov 28, 2019 at 15:53 UTC | |
|
Re: More elegant way than multiple "if"?
by LanX (Saint) on Nov 28, 2019 at 15:14 UTC | |
|
Re: More elegant way than multiple "if"?
by Anonymous Monk on Nov 29, 2019 at 01:58 UTC |