Perl built in functions

General question about the package, problems, solutions
pjensen
Posts: 10
Joined: Tue Apr 27, 2010 4:44 pm

Perl built in functions

Postby pjensen » Tue Apr 27, 2010 4:53 pm

Hi Pavel,

Thank you for this great email alternative package compared to the one supplied by IBM. I downloaded it a week ago and am experimenting with it. I have a question about perl built in functions.

In parameterized text fields I am supposed to be able to use Perl built in functions. I am trying to use "printf" in the body of the message (Msg_Body) but it just returns "1". I tried print and printf, but neither work in the message body. Why isn't it working? Should I set that up as a udb_property and then call it?

Paul

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: Perl built in functions

Postby Pavel » Tue Apr 27, 2010 5:07 pm

print and printf both return 1 in case of success.
Did you expect something else?

Regards,
Pavel

pjensen
Posts: 10
Joined: Tue Apr 27, 2010 4:44 pm

Re: Perl built in functions

Postby pjensen » Wed Apr 28, 2010 8:59 am

Yes, I was looking for an easy way to add formatting statements to the message body. I thought I could use printf in the message body. It looks like I would need to create a function that would return the string formatted the way I want it displayed in the message body.

Paul

Pavel
Posts: 281
Joined: Fri Dec 12, 2008 12:19 am

Re: Perl built in functions

Postby Pavel » Wed Apr 28, 2010 5:06 pm

pjensen wrote:Yes, I was looking for an easy way to add formatting statements to the message body. I thought I could use printf in the message body.

Have you tried using sprintf? It returns formatted string.

Regards,
Pavel


Return to “Email Notification Package Q&A”

Who is online

Users browsing this forum: No registered users and 1 guest

cron