O
OttawaTrade
article ( [ MSGID|MSGNUM ], [FH] )
Retrieve the header, a blank line, then the body (text) of the specified
article.
If FH is specified then it is expected to be a valid filehandle and the
result will be printed to it, on sucess a true value will be returned. If FH
is not specified then the return value, on sucess, will be a reference to an
array containg the article requested, each entry in the array will contain
one line of the article.
If no arguments are passed then the current article in the currently
selected newsgroup is fetched.
MSGNUM is a numeric id of an article in the current newsgroup, and will
change the current article pointer. MSGID is the message id of an article as
shown in that article's header. It is anticipated that the client will
obtain the MSGID from a list provided by the newnews command, from
references contained within another article, or from the message-id provided
in the response to some other commands.
If there is an error then undef will be returned.
I did this
print $nntp-> article ('<[email protected]>');
output:
ARRAY(0x1d3ffac)
I want to print and do regex on the output. Is there a to_string, _print
option on an array?
I think pring $array will work, but not in my case. I can not find why.
Retrieve the header, a blank line, then the body (text) of the specified
article.
If FH is specified then it is expected to be a valid filehandle and the
result will be printed to it, on sucess a true value will be returned. If FH
is not specified then the return value, on sucess, will be a reference to an
array containg the article requested, each entry in the array will contain
one line of the article.
If no arguments are passed then the current article in the currently
selected newsgroup is fetched.
MSGNUM is a numeric id of an article in the current newsgroup, and will
change the current article pointer. MSGID is the message id of an article as
shown in that article's header. It is anticipated that the client will
obtain the MSGID from a list provided by the newnews command, from
references contained within another article, or from the message-id provided
in the response to some other commands.
If there is an error then undef will be returned.
I did this
print $nntp-> article ('<[email protected]>');
output:
ARRAY(0x1d3ffac)
I want to print and do regex on the output. Is there a to_string, _print
option on an array?
I think pring $array will work, but not in my case. I can not find why.