If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > HEREDOC question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-07, 11:45
ssmith001 ssmith001 is offline
Registered User
 
Join Date: Sep 2005
Posts: 220
HEREDOC question

I use a HEREDOC to create an email message body. Within the message body I want to also print out the contents of an array called @output_array. How do I do this?
Reply With Quote
  #2 (permalink)  
Old 04-26-07, 18:33
KevinADC KevinADC is offline
Registered User
 
Join Date: Feb 2006
Posts: 56
just put the array in the HEREDOC and see what happens.
Reply With Quote
  #3 (permalink)  
Old 04-27-07, 14:39
ssmith001 ssmith001 is offline
Registered User
 
Join Date: Sep 2005
Posts: 220
I tried that. I was able to get it to work another way.
Reply With Quote
  #4 (permalink)  
Old 04-28-07, 01:55
KevinADC KevinADC is offline
Registered User
 
Join Date: Feb 2006
Posts: 56
it should work

@array = qw(this is a test);

print <<HERE
@array

HERE
Reply With Quote
  #5 (permalink)  
Old 05-01-07, 13:10
ssmith001 ssmith001 is offline
Registered User
 
Join Date: Sep 2005
Posts: 220
Kevin, I was able to get this to work. Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On