How can I slurp STDIN in Perl?

后端 未结 5 1807
情话喂你
情话喂你 2021-02-07 08:06

I piping the output of several scripts. One of these scripts outputs an entire HTML page that gets processed by my perl script. I want to be able to pull the whole 58K of text

5条回答
  •  一生所求
    2021-02-07 08:47

    I can't let this opportunity to say how much I love IO::All pass without saying:

    ♥ ♥ __ "I really like IO::All ... a lot" __ ♥ ♥

    Variation on the POD SYNOPSIS:

    use IO::All;
    my $contents < io('-') ;
    print "\n printing your IO: \n $contents \n with IO::All goodness ..." ;
    

    Warning: IO::All may begin replacing everything else you know about IO in perl with its own insidious goodness.

提交回复
热议问题