This seems to work:
@array=split /\n/, <<EOD;
blah blah
yacc yacc
whatever
EOD
Unless you're using Windows, in which case you'll need to do something more like
@array=split /[\r\n]+/, <<EOD;
Unless there's a standard end-of-line sequence for regexes that i don't know about ...
?
-----Original Message-----
From: Ron Woodall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: heredoc
Hi All:
How do I take a heredoc section and write it to an array? Any suggestions?
Ron Woodall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]