Hi YH,
Thanks a lot for your reply. I just tried it but it outputs:
*******************************
$VAR1 = 'ARRAY(0x1883454)
';
*******************************
which is still the similar problem. Any more idea? Thanks a lot.
To be exact, I used this code:
*******************************
#!/usr/bin/perl
use Class::Inspector;
use Bio::Graphics;
use Data::Dumper;
my @methods = Class::Inspector->methods( 'Bio::Graphics', 'full', 'public');
foreach (@methods) {
print Dumper $_ . "\n";
}
*******************************
Regards,
Kenneth
-----Original Message-----
From: Peng YH [mailto:[email protected]]
Sent: Tuesday, April 13, 2010 3:37 PM
To: CHAN, KENNETH 1 [AG/7721]; [email protected]
Subject: Re: Display the actual values in an array
use Data::Dumper;
foreach (@methods) {
print Dumper $_ . "\n";
}
-----邮件原件-----
发件人: CHAN, KENNETH 1 [AG/7721] [mailto:[email protected]]
发送时间: 2010年4月13日 15:17
收件人: [email protected]
主题: Display the actual values in an array
Hi all,
I wanted to display the actual values in an array by the following simple
codes:
*********************************
use Class::Inspector;
use Bio::Graphics;
my @methods = Class::Inspector->methods( 'Bio::Graphics', 'full', 'public');
foreach (@methods) {
print $_ . "\n";
}
*********************************
However, it only prints: ARRAY (0x18833dc)
How can I print out all the actual method name?
Thanks in advance.
Regards,
Kenneth
----------------------------------------------------------------------------
-----------------------------
This e-mail message may contain privileged and/or confidential information,
and is intended to be received only by persons entitled to receive such
information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and all attachments from any servers,
hard drives or any other media. Other use of this e-mail by you is strictly
prohibited.
All e-mails and attachments sent and received are subject to monitoring,
reading and archival by Monsanto, including its subsidiaries. The recipient
of this e-mail is solely responsible for checking for the presence of
"Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts
no liability for any damage caused by any such code transmitted by or
accompanying this e-mail or any attachment.
----------------------------------------------------------------------------
-----------------------------
---------------------------------------------------------------------------------------------------------
This e-mail message may contain privileged and/or confidential information, and
is intended to be received only by persons entitled to receive such
information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and all attachments from any servers, hard
drives or any other media. Other use of this e-mail by you is strictly
prohibited.
All e-mails and attachments sent and received are subject to monitoring,
reading and archival by Monsanto, including its subsidiaries. The recipient of
this e-mail is solely responsible for checking for the presence of "Viruses" or
other "Malware". Monsanto, along with its subsidiaries, accepts no liability
for any damage caused by any such code transmitted by or accompanying this
e-mail or any attachment.
---------------------------------------------------------------------------------------------------------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/