in reply to Re: Order of execution of functions in list
in thread Order of execution of functions in list

has no side-effects
shift() actually modifies @_, isn't it side-effect?
if shift()s executed in different order, result will be different.
  • Comment on Re^2: Order of execution of functions in list

Replies are listed 'Best First'.
Re^3: Order of execution of functions in list
by LanX (Saint) on Sep 13, 2013 at 14:00 UTC
    Imho a main effect cause its a builtin function.

    Do you expect  sub inc { return $_[0] + 1} to cause ambiguity ?

    Ok ... Maybe better phrased "a well defined effect" my definition of side was to restricted.

    Cheers Rolf

    ( addicted to the Perl Programming Language)