logo       

Re: functionality of checkref in perl: msg#00001

Subject: Re: functionality of checkref in perl
Hi Mathias,

Quoting Mathias Krüger <m.krueger@xxxxxxxxxxxx>:

> So I really don't unterstand, how to use the checkref-function in the
> Perl-Module, in last parameter I am able to submit $output-parameter,
> but how I get the output? the only out I get is:
>
> 999:1 checked:0 skipped:0 failed
>
[...]
>
> print $client->refdb_checkref($data, "ris", "utf-8", "scrn");
>
>
After that, just run:

print $client->get_data();


The Perl Client module functions always return the command summary  
(i.e. the brief message which the C clients send to stderr, which is  
the one you saw in your tests). The most recently returned data, if  
any, are always accessible via the get_data() member function. The  
reason for this somewhat obscure design is that some commands do not  
return data, but only a summary. For the sake of consistency, these  
functions would have to return undef if we'd use the data proper as a  
return value throughout.

BTW the test script test.pl runs each function at least once. It is a  
good resource for finding out how these functions work.

regards,
Markus
-- 
Markus Hoenicka
markus.hoenicka@xxxxxxx
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe