Unfortunately <<'EOT' has the same limitations as using <<<, meaning: STDIN is already used for the script and so I can't pipe other content in.
My current solution is, that I use a variable like this:
my $DATAvar = <<'EOT'; example data here EOT
In reply to Re^2: 'perl -e' and '__DATA__' What's wrong?
by Skeeve
in thread 'perl -e' and '__DATA__' What's wrong?
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |