On Mon, Sep 17, 2001 at 07:09:56PM -0400, Dan Sugalski wrote:
> At 03:49 PM 9/17/2001 -0600, Sterin, Ilya wrote:
> >I guess the problem can be easily solved by converting to integer if a
> >mathematical operation is performed, or a similar behavior.
> >
> >@array = ("one", "two", 3);
> >
> >All are now internally strings
> 
> Yech.

It's all right, they're not really:

(-e:1)  const(PV("one"\0))
    =>  *  PV("one"\0)
(-e:1)  const(PV("two"\0))
    =>  *  PV("one"\0)  PV("two"\0)
(-e:1)  const(IV(3))
    =>  *  PV("one"\0)  PV("two"\0)  IV(3)
(-e:1)  pushmark
    =>  *  PV("one"\0)  PV("two"\0)  IV(3)  *
(-e:1)  gv(main::array)
    =>  *  PV("one"\0)  PV("two"\0)  IV(3)  *  GV()
(-e:1)  rv2av
    =>  *  PV("one"\0)  PV("two"\0)  IV(3)  *  AV()
(-e:1)  aassign

-- 
All the good ones are taken.

Reply via email to