On Thu, 2002-05-09 at 13:45, Elliott M Moskowitz wrote:
> How do you implement a Unix shell "here" document in perl ?

Do you mean a here string like this:

my $string = <<'ENDOFSTRING';
this
is a string.
ENDOFSTRING

or to you mean real here files like this:

../script.pl <<EOF
this is 
data
EOF

The first case is simply an interpolated string.  The second case the
here doc replaces STDIN (you can uses the while(<>) magic).
-- 
Today is Prickle-Prickle the 56th day of Discord in the YOLD 3168
P'tang!

Missile Address: 33:48:3.521N  84:23:34.786W


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to