in reply to Re: {} vs do{}
in thread {} vs do{}
Hmmmm ... what about this:
which does actually put odds in one file and evens in another.open( FH1 , '>foo' ); open( FH2 , '>bar' ); @fhs = ( FH1 , FH2 ); print { $fhs[ $_ % 2 ] } "$_\n" for ( 1 .. 10 );
I understood this as the BLOCK returning the last value. Is something else going on?
Scott 'Confused in Indiana' Crittenden
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: {} vs do{}
by MeowChow (Vicar) on Jul 05, 2001 at 01:44 UTC | |
Re: Re: Re: {} vs do{}
by John M. Dlugosz (Monsignor) on Jul 21, 2001 at 01:47 UTC |