Alternatives to using Switch.pm Perl module with CQperl or ratlperl

Technote (FAQ)


Question

What alternatives to using the Switch.pm Perl module are available when using IBM Rational ClearQuest CQperl or ratlperl?

Cause

The Switch.pm module has been dropped from the standard distribution of Perl as of Perl 5.12. 

Refer to the "Deprecations" section in the following article for further information:

http://www.perl.com/pub/2010/04/inside-perl-512.html

Answer

Future releases of ClearQuest will be bundled with newer versions of Perl which will no longer include Switch.pm. Thus, if you are using the Switch.pm module, you should consider using new features that are available in Perl 5.10 and later to replace the functionality of Switch.pm.

Refer to the following FAQ which provides information about the new syntax:

http://perldoc.perl.org/perlfaq7.html#How-do-I-create-a-switch-or-case-statement%3F

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearQuest
General Information

Software version:

8.0

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1621637

Modified date:

2013-01-04

Translate my page

Machine Translation

Content navigation