내 이름은 루이스, arg에 살고있다. 난 해결할 수없는 문제가 있습니다.펄 시스템 + 스플릿 + 어레이
**IN BASH**
pwd
/home/labs-perl
ls
file1.pl file2.pl
**IN PERL**
my $ls = exec("ls");
my @lsarray = split(/\s+/, $ls);
print "$lsarray[1]\n"; #how this, i need the solution. >> file.pl
file1.pl file2.pl # but this is see in shell.
'warnings'을 사용하면 perl은'exec()'가 실행 된 후에 아무것도 경고하지 않습니다. (* "성명서에 도달 할 것 같지 않습니다 ...") *) – pilcrow