How can I process a multi line string one line at a time in perl with use strict in place?

前端 未结 7 1962
南旧
南旧 2021-02-15 13:32

I\'m trying to figure out the proper PBP approved way to process a multi line string one line at a time. Many Perl coders suggest treating the multi line string as a filehandle

7条回答
  •  悲&欢浪女
    2021-02-15 13:56

    Open a filehandle using a pipe from "dir" command.

    E.g.

    open my $FOO, "dir|" or die "Can not run 'dir': $!";
    

提交回复
热议问题