Oops, sorry it was just pointed out to me today that this was already asked 
today :) There are over 1000 unread messages in my Perl folder and I didn't 
think to look through them all

On Friday 01 March 2002 11:52 am, you wrote:
> I'm really curious what the point of foreach is considering for does the
> same exact thing? For example:
>
> @myarray = (1 .. 10);
>
> for (@myarray) {
>    print "$_\n";
> }
>
>
> Or, you could swap the for for a foreach and the same thing would get
> accomplished...  The only difference I can think of is a slightly different
> handling of hashes.  Is this the only benefit of foreach?  What am I
> missing here

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

Reply via email to