Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 (Canon) 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 musing on the Monastery: (2)
As of 2015-07-06 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls