Anton Ganeshalingam wrote:
yes this is good solution. But how would I convert integer values.

let say $num = '1234'

I may have to insert this into a integer field in a db. Hence, using your
approuch would cause me problems when I convert int data types. For example
trying to convert '10' will produce this '?ê?Ç'.


should I just use <<= and >>= for integer types


Yes, you can do that if you want (or must). It's unnecessary from a perl perspective. Is it necessary from the database perspective ?


As far as perl is concerned, it doesn't matter whether you shift the int value, or shift the ASCII values of the characters. In either case you still get the original number back when you reverse the procedure.

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to