Re: [S05] /ee

2006-05-05 Thread Ruud H.G. van Tol
Juerd schreef:
> Dr.Ruud:
>> S05:

>>>  s/pattern/{ eval doit() }/
>>
>> s/eval/try/ ?
>
> No, string eval stays eval. Only block eval is renamed to try.

Understood, but I was thinking about variants like

  { eval '' ~ doit() }
  { eval $\&doit }

and then wasn't sure anymore whether "eval doit()" is a string eval or
not.


$ perl5 -le 'sub x{print""; ""}; print(":". eval( "x()" ) .":")'

::

$ perl5 -le 'sub x{print""; ""}; print(":". eval {x()} .":")'

::

$ perl5 -le 'sub x{print""; ""}; print(":". eval( {x()} ) .":")'

::

$ perl5 -le 'sub x{print""; ""}; print(":". eval( x() ) .":")'

::

-- 
Groet, Ruud



Re: [S05] /ee

2006-05-05 Thread Juerd
Dr.Ruud skribis 2006-05-05 15:25 (+0200):
> >  s/pattern/{ eval doit() }/
> s/eval/try/ ?

No, string eval stays eval. Only block eval is renamed to try.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html


[S05] /ee

2006-05-05 Thread Dr.Ruud

  Instead of /ee say:
 s/pattern/{ eval doit() }/


s/eval/try/ ?

-- 
Affijn, Ruud

"Gewoon is een tijger."