Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Order of execution of functions in list

by vsespb (Hermit)
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
Re^3: Order of execution of functions in list
by LanX (Abbot) 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 chilling in the Monastery: (8)
As of 2014-04-19 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls