Trying to understand sort and anonymous sub

2004-07-24 Thread Dalton Marris
I am trying to understand the use of "sub" in the second "foreach $daynum" loop in the code shown below. I know it's an anonymous sub, but can't figure out why it's needed, if it indeed is. I have read the perlref and perlsub documents, and googled for information, to no avail. Some things I

Re: Trying to understand sort and anonymous sub

2004-07-24 Thread Paul Johnson
On Sat, Jul 24, 2004 at 08:57:56AM -0400, Dalton Marris wrote: > I am trying to understand the use of "sub" in the second "foreach > $daynum" loop in the code shown below. I know it's an anonymous sub, > but can't figure out why it's needed, if it indeed is. I have read the > perlref and perl