in reply to Re: 'perl -e' and '__DATA__' What's wrong?
in thread 'perl -e' and '__DATA__' What's wrong?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 'perl -e' and '__DATA__' What's wrong?
by johngg (Canon) on Dec 07, 2007 at 14:29 UTC | |
by Skeeve (Parson) on Dec 07, 2007 at 14:47 UTC | |
by duff (Parson) on Dec 07, 2007 at 14:53 UTC | |
by Skeeve (Parson) on Dec 07, 2007 at 15:15 UTC | |
by shmem (Chancellor) on Dec 07, 2007 at 18:27 UTC | |
by eric256 (Parson) on Dec 07, 2007 at 16:19 UTC |