spiros has asked for the wisdom of the Perl Monks concerning the following question:
is there a Perl module out there that given an array of scalars returns a best guess of what data type describes the array. For example, given 100 numbers would guess that its a numerical array while mixed strings and numbers would return that the best data type is string.
I am thinking along the lines of what most statistical applications do when you load a CSV file and they try to guesstimate what data type each column is.
Your wisdom is appreciated..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best guess for data type
by tobyink (Canon) on Apr 22, 2013 at 16:55 UTC | |
|
Re: Best guess for data type
by InfiniteSilence (Curate) on Apr 22, 2013 at 16:51 UTC | |
|
Re: Best guess for data type
by LanX (Saint) on Apr 22, 2013 at 22:52 UTC |