Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to print an entire nntp article

by saberworks (Curate)
on May 26, 2009 at 03:28 UTC ( #766119=note: print w/ replies, xml ) Need Help??


in reply to How to print an entire nntp article

Documentation says...

If FH is not specified then the return value, on success, will be a reference to an array containing the article requested, each entry in the array will contain one line of the article.
I've used this module before and it seems like it returned a real array from the body() method, so I'm guessing you can do:

print "$_\n" for $article->body();

But if it's returning an arrayref, just dereference it:

print "$_\n" for @{$article->body()};


Comment on Re: How to print an entire nntp article
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://766119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-08-01 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls