🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219254

Re: PNews update

#219254
From: Gerry Ford
Date: Tue, 15 Apr 2008 05:41
87 lines
3804 bytes
"Mats Peterson" <matsp555@yahoo.com> wrote in message 
news:tDEMj.6037$R_4.4831@newsb.telia.net...
> "Gerry Ford" <gerry@nowhere.ford> wrote:
>>

>> My question for Mats has to do with the use statements in his client:
>> use strict;
>> use Net::NNTP;
>> use Net::SMTP;
>> use HTTP::Date qw/time2str str2time/;
>> use MIME::QuotedPrint qw/encode_qp decode_qp/;
>> use Encode qw/encode decode/;
>> use POSIX qw/strftime/;
>> use File::stat;
>> use File::Temp qw/:mktemp/;
>> use Win32::ANSIConsole qw/coninit cls/;
>>
>> I believe for perl.exe to know what I'm talking about, I would have to
>> download these modules.  This isn't as sraightforward as I would like 
>> with
>> windows, but for a guy at my skill level, I think I could marshall these
>> together.  My question goes to this syntax that follows the plain vanilla
>> "use" statement:
>>
>> use File::Temp qw/:mktemp/;
>>                         ^^^^^^^^
>>
>> What does it mean?
>
> This is explained in the Exporter documentation, which can be viewed
> with the command `perldoc Exporter'. Check the "How to Import" section.
I tuned up on the import syntax.  AS perl has no idea what, e.g., 
Win32::ANSIConsole is.  In c.l.p.misc, someone posted a link to this:

package Win32::Console::ANSI;
#
# Copyright (c) 2004 Jean-Louis Morel <jl_morel@bribes.org>
#
# Version 1.01 (08/06/2005)
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See either the
# GNU General Public License or the Artistic License for more details.
#

use 5.006;
use strict;
use warnings;
require Exporter;

our @ISA = qw(Exporter);
our $VERSION = '1.00';

our %EXPORT_TAGS = (
'all' => [ qw( Title Cursor XYMax SetConsoleSize Cls ScriptCP )],
);

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} },
);

our @EXPORT = qw(
);

package Win32::Console::ANSI;

require XSLoader;
XSLoader::load('Win32::Console::ANSI', $VERSION);

1;
__END__
# pod data snipped; it was long.

This has a cls but not a coninit.  What module do you mean by this and how 
do I acquire it?

-- 
"Shopping for toilets isn't the most fascinating way to spend a Saturday
afternoon. But it beats watching cable news."

~~  Booman 

Technical Details
Message-ID: <1208237675_7@news.newsgroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!sp12lax.superfeed.net!not-for-mail
References: <FQjMj.5999$R_4.4766@newsb.telia.net> <1208149449_40983@news.newsgroups.com> <tDEMj.6037$R_4.4831@newsb.telia.net>

Show Full Headers
Complete Article Headers
Message-ID: <1208237675_7@news.newsgroups.com>
Subject: Re: PNews update
Date: Tue, 15 Apr 2008 00:41:55 -0500
From: "Gerry Ford" <gerry@nowhere.ford>
References: <FQjMj.5999$R_4.4766@newsb.telia.net> <1208149449_40983@news.newsgroups.com> <tDEMj.6037$R_4.4831@newsb.telia.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!sp12lax.superfeed.net!not-for-mail
Lines: 86
Organization: Newsgroups.com
Newsgroups: news.software.readers
X-Proxy-User: $$s_iz$n-74p
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Report: Please report illegal or inappropriate use to
 <abuse@newsgroups.com>. Forward a copy of ALL headers INCLUDING the body. (DO
 NOT SEND ATTACHMENTS)
X-Comments2: IMPORTANT: Newsgroups.com does not condone, support,
 nor tolerate spam or any illegal or copyrighted postings.
X-Comments: This message was posted through Newsgroups.com
X-Original-Bytes: 3395
X-Original-Lines: 105