in reply to Re: Eval str return different from Eval block return
in thread Eval str return different from Eval block return

!?!!

Can you tell me what happens when you use the code in Re: Re: Eval str return different from Eval block return?

We are running the same version of Perl so im suprised we are having different results. (ok im W2k not NT propper, but still...)

Thanks,

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.

  • Comment on Re: Re: Eval str return different from Eval block return

Replies are listed 'Best First'.
Re: Re: Re: Eval str return different from Eval block return
by alien_life_form (Pilgrim) on May 17, 2002 at 16:19 UTC
    Greetings,

    The warning disappears then.
    I still get

    Modification of a read-only value attempted at strange2.pl line 4.
    for $@ at "Block Eval ret" though.
    Cheers,
    alf
    You can't have everything: where would you put it?
      Bing!

      Of course you do. :-) $@ is being set by the eval in readonly().

      Thats how we determine if the var is readonly in the first place. :-)

      Yves / DeMerphq
      ---
      Writing a good benchmark isnt as easy as it might look.