Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Ampersand changes behavior of subroutine

by haukex (Archbishop)
on Feb 08, 2019 at 19:47 UTC ( [id://1229645]=note: print w/replies, xml ) Need Help??


in reply to Ampersand changes behavior of subroutine

I've noticed that my subroutine behaves differently depending on if I call it with an "&" character or not.

Although the others have already explained that in this case it's because of the way sort works, I just wanted to briefly address the more general question about calling subs with and without an ampersand: see this node for an explanation.

  • Comment on Re: Ampersand changes behavior of subroutine

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found