How to use SetEmail() in Perl script which uses Rational ClearQuest API
How do you use SetEmail() in a Perl script which uses IBM Rational ClearQuest API?
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:
The user email id will be printed as "testuser.com" in Rational ClearQuest User Administration tool.
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:
The User Email id will be printed as "email@example.com" in Rational ClearQuest User Administration tool.
Translate this page: