in reply to use of << on comand line

Try:

my @shellheredoc = <STDIN>;

PS. Don't forget to chomp if required.

Replies are listed 'Best First'.
Re^2: use of << on comand line
by ikegami (Patriarch) on Jun 04, 2018 at 19:45 UTC

    Or shift out the contents of @ARGV and use <>. This is a far more flexible and standard approach.

Re^2: use of << on comand line
by cweeble (Novice) on Jun 04, 2018 at 14:45 UTC
    Thanks. That worked. :)