Yves Orton wrote:

I don't know if this is a bug or not, it seems sorta reasonable although
entirely _not_ dwim:

  C:\>perl -e "sub X { print eval 'shift' } X(1)" A
  A

Is this correct?

See perldoc -f shift

(I've just drifted over from comp.lang.perl.* where I mostly hang-out and where we take a dim view of failures to RTFM. If anything would expect p5p to take an even dimmer view).



Reply via email to