Garrett Goebel wrote: > From: Stuart Rocks [mailto:[EMAIL PROTECTED]] > >>Both the following would work: >> >>with($foo){ >> print "I am not a $foo\n"; >> # or: >> print "I am not a "; >> print; >>} >> > > Okay... I've been mostly ignoring this thread. But can someone reiterate the > difference between the above and > > for($foo){ > print "I am not a $foo\n"; > # or: > print "I am not a "; > print; > } > > ??? > > pure syntax. does anyone else question making aliases like 'with' from 'for'? a 'with' alias could open the door on purely confusing code like this: with( my $i; $i < 10; $i++ ){ ... } instead of having an standard 'with' that only works on objects like this: with( MyObject->new() ) { .setIt("blah"); ... } -- -mark koopman WebSideStory 10182 Telesis Court San Diego CA 92121 858-546-1182 ext 318
- what's with 'with'? (was: [aliasing - was:[nice2haveit]]) Garrett Goebel
- Re: what's with 'with'? (was: [aliasing - was:[nice2h... Stuart Rocks
- Re: what's with 'with'? (was: [aliasing - was:[nice2h... Mark Koopman
- RE: what's with 'with'? (was: [aliasing - was:[nice2h... Sterin, Ilya
- Re: what's with 'with'? (was: [aliasing - was:[ni... Stuart Rocks
- RE: what's with 'with'? (was: [aliasing - was:[nice2h... Sterin, Ilya
- RE: what's with 'with'? (was: [aliasing - was:[nice2h... Sterin, Ilya
- Re: what's with 'with'? (was: [aliasing - was:[ni... 'John Porter '
- Re: what's with 'with'? (was: [aliasing - was... 'John Porter '
- RE: what's with 'with'? (was: [aliasing - was:[nice2h... Sterin, Ilya
- Re: what's with 'with'? (was: [aliasing - was:[ni... Stuart Rocks
- RE: what's with 'with'? (was: [aliasing - was:[nice2h... Sterin, Ilya