Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Order of execution of functions in list

by vsespb (Chaplain)
on Sep 13, 2013 at 13:06 UTC ( #1053922=note: print w/ replies, xml ) Need Help??


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 (Chancellor) 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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2016-06-25 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (326 votes). Check out past polls.