I asked a question about the use of "$a" and "$b" in Perl's sort()
function the other day:
What exactly are "$a" and "$b" in Perl's "sort()" function?
I now have a follow up question. Are "$a" and "$b" only used by sort()
or is there any other Perl function that takes advantage of these special global variables?
Or even if no other function uses them, are there any situations outside of sort()
that you would use "$a" or "$b"?
Edit:
To clarify:
In short, the question is can "$a" and "$b" be used by something other than sort()
?
I am just curious to see what other situations they can be used in. I have never seen "$a" or "$b" used by anything else and was wondering have any other special use outside of sort()
.