in reply to foreach loops
In the last example, where foreach uses the default $_, you could go one step further and allow print to do the same.
If you're willing to forego the commas, that is:
If you're willing to forego the commas, that is:
foreach(@numbers){ print; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 2: foreach loops
by tilly (Archbishop) on Dec 16, 2001 at 05:00 UTC | |
Re: Re: foreach loops
by blakem (Monsignor) on Dec 16, 2001 at 01:17 UTC | |
by barun (Novice) on Feb 05, 2005 at 13:23 UTC |
In Section
Tutorials