On 5/9/02 10:45 AM, Elliott M Moskowitz <[EMAIL PROTECTED]>
wrote:

> How do you implement a Unix shell "here" document in perl ?

$stuff = <<THINGS;
These are things that will be assigned to stuff.
This is another line.
Look ma, no triple-quotes!
THINGS

# If THINGS is single-quoted, the contents of the here-doc will be
# treated like a single-quoted string. A la:

$otherstuff = <<'THINGS';
This will be assigned to $otherstuff, which would normally have to
be written as \$otherstuff to prevent interpolation.
THINGS

-- 
Michael


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

Reply via email to