in reply to Re: Use of foreach
in thread Use of foreach
And that undefined element should be (at least) the first in the array, because the OP only tries to print the first element (and then exits):
foreach (@file_names){ print $_; exit; }
citromatik
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of foreach
by naikonta (Curate) on Jun 22, 2007 at 16:36 UTC |