On Wednesday 08 August 2001 13:40, Ron Woodall wrote:
>       How do I take a heredoc section and write it to an array? Any suggestions?

Hmmm, at the risk of not being helpful, can you explain what it is you're 
wanting to do?

If you're wanting to save strings to an array and then iterate over them 
having them print out in a heredoc, try this:

#!/usr/bin/perl

use strict;
use warnings;

my @a = ( 'this is a test', 'this is also a test' );

foreach( @a ){
print<<TOHERE
$_
TOHERE
}

Otherwise, please give more of an explanation.

Regards,

Troy


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

Reply via email to