in reply to Re: Question on SV internals
in thread Question on SV internals

I was thinking of taking a field that I'm originally using for a numeric value and adding some other (optional) flags to it. Making it a string comparison would give funny results for 4 vs 20, etc. Splitting it up into different fields first, or setting it up with additional (mostly unused) fields originally would be more work.

I was assuming that using "20 ducks" as a numeric value just worked (albeit with a warning I can turn off in a tight scope). I would not expect the "ducks" to disappear, as I'll look at that part of the string later.

Replies are listed 'Best First'.
Re^3: Question on SV internals
by Tux (Canon) on May 09, 2011 at 22:05 UTC

    The read the tutorial on pack and unpack. The advantage of pack "NA20", 20, "ducks" is that it sorts fantastic and fast and that the numeric part and the string part are well-defined separated from eachother.


    Enjoy, Have FUN! H.Merijn