On 2008-01-12 19:18:38 +0300, Tomash Brechko wrote:
> On Sat, Jan 12, 2008 at 19:09:08 +0300, Tomash Brechko wrote:
> >     encoding => 'preserve' | 'force' (default: undef, i.e. neither)
> 
> There's another alternative to it:
> 
>   serialize => 1
> 
> When set, C::M::F would simply use Storable for scalars too, and the
> whole problem with text and rational numbers is gone.  This looks
> correct to me.

This is alternative 2 I suggested in my first posting in this thread.
However, as I wrote there, I don't like it:

1) Storable can only serialize references. So you would have to
   serialize \$string instead of $string. Now you either lose the
   distinction between strings and references to strings (bad) or you
   need to add an extra reference to references (not as bad, but ugly).

2) It turns simple, language-independent strings into a complex
   perl-specific serialization format. This may be a problem if your
   application has been written in different languages.

        hp

-- 
   _  | Peter J. Holzer    | It took a genius to create [TeX],
|_|_) | Sysadmin WSR       | and it takes a genius to maintain it.
| |   | [EMAIL PROTECTED]         | That's not engineering, that's art.
__/   | http://www.hjp.at/ |    -- David Kastrup in comp.text.tex

Attachment: signature.asc
Description: Digital signature

Reply via email to