关注system command line max length in perl,因为我找不到参数大小的限制和perl中系统命令行长度的限制,因此我找不到具体的答案。
# my ARG_MAX is big enough:
$ echo "`cat bigfile`" | wc -c
214006
# but limit for length of system command line in perl is less
$ cat bigfile | perl -e '$s = <>; print length $s; print `echo $s`'
214006
# to prove that the code itself is OK
$ echo abc | perl -e '$s = <>; print length $s; print `echo $s`'
4abc
那么,系统命令行调用的perl最大长度是多少?有没有办法增加它?