Finally I need all data fields (subject,body etc.) into separate variables to pass it to send a mail.
That isn't necessary. You can use the values directly from the hash. eg:
print MAIL "Subject: $parts{SUBJECT}\n\n";
See Not Exactly a Hash Tutorial for more on how to use hashes.
In reply to Re^3: Parse text file data to send a mail.
by hippo
in thread Parse text file data to send a mail.
by rahu_6697
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |