Home > Archive > PERL Beginners > November 2007 > Using MQSeries modules
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Using MQSeries modules
|
|
| Fra@Nek 2007-11-22, 7:00 pm |
| Is it correct to use such syntax:
....
use MQSeries qw(:functions);
.....
I try to use MQSeries modules and have errors like this:
.....
"functions" is not defined in %MQSeries::EXPORT_TAGS at /usr/local/lib/
perl/5.8.8/MQSeries/Command/PCF.pm line 20
Can't continue after import errors at /usr/local/lib/perl/5.8.8/
MQSeries/Command/PCF.pm line 20
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.8.8/
MQSeries/Command/PCF.pm line 20.
at /usr/local/lib/perl/5.8.8/MQSeries/Command/PCF.pm line 20
require MQSeries/Command/PCF.pm called at /usr/local/lib/perl/
5.8.8/MQSeries/QueueManager.pm line 29
MQSeries::QueueManager::BEGIN() called at /usr/local/lib/perl/
5.8.8/MQSeries/Command/PCF.pm line 20
eval {...} called at /usr/local/lib/perl/5.8.8/MQSeries/
Command/PCF.pm line 20
require MQSeries/QueueManager.pm called at mq_test.pl line 4
main::BEGIN() called at /usr/local/lib/perl/5.8.8/MQSeries/
Command/PCF.pm line 20
eval {...} called at /usr/local/lib/perl/5.8.8/MQSeries/
Command/PCF.pm line 20
.....
I,ve looked many perl manuals and there is no informations about using
qw(:functions) in use syntax.
fr@nkie
| |
| Gunnar Hjalmarsson 2007-11-22, 7:00 pm |
| fra@nek wrote:
> Is it correct to use such syntax:
> ...
> use MQSeries qw(:functions);
According to the docs at cpan.org it is.
> I try to use MQSeries modules and have errors like this:
> ....
> "functions" is not defined in %MQSeries::EXPORT_TAGS ...
<snip>
> I,ve looked many perl manuals and there is no informations about using
> qw(:functions) in use syntax.
"Many perl manuals"? How about checking the docs for the version of
MQSeries that's installed on your system?
perldoc MQSeries
Another option is to upgrade to the latest version of the module.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Rodrick Brown 2007-11-22, 7:00 pm |
| Try contacting the author
On Nov 22, 2007 8:51 AM, fra@nek <franek4always@gmail.com> wrote:
> Is it correct to use such syntax:
> ...
> use MQSeries qw(:functions);
> ....
>
> I try to use MQSeries modules and have errors like this:
> ....
> "functions" is not defined in %MQSeries::EXPORT_TAGS at /usr/local/lib/
> perl/5.8.8/MQSeries/Command/PCF.pm line 20
> Can't continue after import errors at /usr/local/lib/perl/5.8.8/
> MQSeries/Command/PCF.pm line 20
> BEGIN failed--compilation aborted at /usr/local/lib/perl/5.8.8/
> MQSeries/Command/PCF.pm line 20.
> at /usr/local/lib/perl/5.8.8/MQSeries/Command/PCF.pm line 20
> require MQSeries/Command/PCF.pm called at /usr/local/lib/perl/
> 5.8.8/MQSeries/QueueManager.pm line 29
> MQSeries::QueueManager::BEGIN() called at /usr/local/lib/perl/
> 5.8.8/MQSeries/Command/PCF.pm line 20
> eval {...} called at /usr/local/lib/perl/5.8.8/MQSeries/
> Command/PCF.pm line 20
> require MQSeries/QueueManager.pm called at mq_test.pl line 4
> main::BEGIN() called at /usr/local/lib/perl/5.8.8/MQSeries/
> Command/PCF.pm line 20
> eval {...} called at /usr/local/lib/perl/5.8.8/MQSeries/
> Command/PCF.pm line 20
> ....
>
> I,ve looked many perl manuals and there is no informations about using
> qw(:functions) in use syntax.
>
> fr@nkie
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
--
Rodrick R. Brown
http://www.rodrickbrown.com
| |
| Fra@Nek 2007-11-23, 4:01 am |
| On 22 Lis, 17:02, nore...@gunnar.cc (Gunnar Hjalmarsson) wrote:
>
> "Many perl manuals"? How about checking the docs for the version of
> MQSeries that's installed on your system?
>
> perldoc MQSeries
from perldoc MQSeries it is possible:
use MQSeries qw(:functions);
Export just the functions. This should be the way most modules import
MQSeries, as it saves 400Kbyte per module importing MQSeries. In
order to use a macro, e.g. "MQCC_FAILED", you could either add it to
the list on the "use" statement, or refer to "MQSeries::MQCC_FAILED".
>
> Another option is to upgrade to the latest version of the module.
>
it is the latest version od the module:
cpan[2]> r /MQSeries/
All modules are up to date for /MQSeries/
cpan[3]>
fr@nek
|
|
|
|
|