MQSeries::Utils - Internal utility functions


MQSeries documentation  | view source Contained in the MQSeries distribution.

Index


NAME

Top

MQSeries::Utils - Internal utility functions

SYNOPSIS

Top

  use MQSeries::Utils qw(ConvertUnit);

  my $wait_value = ConvertUnit('Wait', '45s');
  my $exp_value = ConvertUnit('Expiry', '1.5m');

DESCRIPTION

Top

The MQSeries::Utils module contains internal helper functions that are generally not of interest to users of the MQSeries module.

FUNCTIONS

Top

ConvertUnit

This function can convert values for the 'Wait' and 'Expiry' options from symbolic values into the numeric values required. Symbolic values are numeric values ending in an 's' for seconds or an 'm' for minutes.

As 'Wait' values are in 1/1000 of a second and 'Expiry' is in 1/10 of a second, using symbolic values can help avoid mistakes such as getting the magnitude of these numbers wrong by one or more orders of magnitude.

SEE ALSO

Top

MQSeries(3)


MQSeries documentation  | view source Contained in the MQSeries distribution.