Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2016-12-03 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.