pass each elements in array to ssytem command

Collegues
How can I pass each elements of an array to a system command ?
This is the current code which am using.
#!/usr/bin/perl
foreach $file (@ARGV[0]) {
open(FILE, $file) || die "Cant open";
@data = split (/\n/,$file);
foreach $data (@data) {
system ("./jag $data");
}
}

Here I have to pass each element one by one and check the output of each element before processing second element.

Any idea

Jagan