> 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; > } Try this under the current for system, cause it's unclear what will happen for those new to Perl: $foo="monkey"; $_=" coward"; for($foo){ print; $_ = " hero"; } print; What is printed is "monkey coward", rather than "monkey hero". In addition, $foo is now " hero". I suppose there isn't a huge difference. Either way, all this talk has probably taken longer than it would take to write the thing.
- 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