I just stumbled upon this in some perl I'm working on:

for $arrayref (@datedbi) {
   #do stuff
}

It didn't look right and sure enough, it should be 'foreach'.

But it worked fine and that's my question - why is this working?

@datedbi's elements are references to lists and they all seem to be getting processed the way I want whether I use 'for' or 'foreach' in the code.
--
Peter Fleck
Webmaster | University of Minnesota Cancer Center
Dinnaken Office Bldg.
925 Delaware St. SE
Minneapolis, MN 55414
612-625-8668 | [EMAIL PROTECTED] | www.cancer.umn.edu
Campus Mail: MMC 806


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to