How to use SetEmail() in Perl script which uses Rational ClearQuest API

Technote (FAQ)


Question

How do you use SetEmail() in a Perl script which uses IBM Rational ClearQuest API?

Cause

SetEmail() does not write correct email id while being used in a Perl script and ClearQuest APIs.
Example: If you use the below API in your script:

S
etEmail("testuser@test.com");

The user email id will be printed as "testuser.com" in Rational ClearQuest User Administration tool.


Answer

Perl considers @variablename as an array. In the scenario mentioned above Perl considers @test as an array.


In order to be able to print the complete email id you would need to prefix \ to @ character when using SetEmail() API as shown below:

SetEmail("testuser\@test.com")

The User Email id will be printed as "testuser@test.com" in Rational ClearQuest User Administration tool.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearQuest
API

Software version:

7.1.2, 7.1.2.5, 7.1.2.6

Operating system(s):

Windows

Reference #:

1643281

Modified date:

2014-02-10

Translate my page

Machine Translation

Content navigation