> foreach $item ( @list ) { > sub( $item ); > } > Are you sure this is not a typo? I've never seen a sub statement taking a list argument... Besides this is what I get if I run it anyway:
[EMAIL PROTECTED]:~$ cat 123 @list = qw(a bc c); foreach $item ( @list ) { sub( $item ); } [EMAIL PROTECTED]:~$ perl 123 Illegal declaration of anonymous subroutine at 123 line 4. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>