in reply to Re: Question on syntax
in thread Question on syntax

I hope you don't, cause
function($good_name) foreach my $good_name (<list>);
and specifically
$good_name(<list>)
are not valid Perl.

Replies are listed 'Best First'.
Re^3: Question on syntax
by mscharrer (Hermit) on Apr 23, 2008 at 09:09 UTC
    Thanks for pointing this out. I of course meant the following code:
    foreach my $good_name (1..10) { function($good_name) }
    in reverse style. I was just assuming that it's valid Perl. I only used the reverse style with if or while statements so far. For a reason my for/foreach loops are always bigger.