[11667] in Perl-Users-Digest
Perl-Users Digest, Issue: 5267 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Mar 31 09:04:16 1999
Date: Wed, 31 Mar 99 06:00:24 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 31 Mar 1999 Volume: 8 Number: 5267
Today's topics:
%ENV on NT (Elise Hooper)
ANNOUNCE: Barcode::Code128 (William R. Ward)
ANNOUNCE: CGI::Formalware <rpsavage@ozemail.com.au>
ANNOUNCE: DbFramework-1.07 <paul@miraclefish.com>
ANNOUNCE: Document::Info 0.01 <schwartz@cs.tu-berlin.de>
ANNOUNCE: HTML::Summary 0.013 <wrigley@cre.canon.co.uk>
ANNOUNCE: HTML::Validator 0.07 <si@iki.fi>
ANNOUNCE: Net::Pcap 0.03 <tpot@acronym.anu.edu.au>
ANNOUNCE: Plotter 1.0 <makler@man.torun.pl>
ANNOUNCE: TextStructured-0.02 <paul@miraclefish.com>
ANNOUNCE: Tie::ShadowHash 0.3 now available <rra@stanford.edu>
ANNOUNCE: WWW::Sitemap 0.001 <wrigley@cre.canon.co.uk>
DBIx::HTMLView 0.4 uploaded to CPAN (Hakan Ardo)
flat file query Help!!! <harri006@email.uwp.edu>
Re: Guestbook Blank Entry (Jonathan Stowe)
Hello World <jim@stv-mcr.freeserve.co.uk>
HTTPi/0.7 Perl webserver released <cdkaiser@concentric.net>
Re: Inserting Formfeed in report <rick.delaney@home.com>
Re: Install Perl on win* using cygwin massimobalestra@my-dejanews.com
Re: LWP..to use or not? <horizon@internetexpress.com.au>
Modify the file <ex5316@netvigator.com>
Re: Q Mail::** - solved <tavi367@ibm.net>
Script produced no output... <fvdm@dds.nl>
Re: Setting directory privs in NT <m.doxsey@x400.icl.co.uk>
Re: Some more newbie questions... (Tad McClellan)
Re: Syntax error in embedded foreach loops (M.J.T. Guy)
Unknown Error souhaib@my-dejanews.com
Re: Use of LWP Modules <zenin@bawdycaste.org>
which database to use in perl ashishkjain@my-dejanews.com
which database to use in perl? Help ashishji@hotpop.com
which database to use in perl? Help ashishkjain@my-dejanews.com
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 31 Mar 1999 13:22:21 GMT
From: elhoop@unx.sas.com (Elise Hooper)
Subject: %ENV on NT
Message-Id: <370420b2.65447768@newshost.unx.sas.com>
Is there a way to add a value to the Registry that will always be
picked up by %ENV on NT?
Thanks
--Elise
<elhoop@wnt.sas.com>
------------------------------
Date: 31 Mar 1999 13:27:03 GMT
From: hermit@cats.ucsc.edu (William R. Ward)
Subject: ANNOUNCE: Barcode::Code128
Message-Id: <7dt7r7$lch$1@play.inetarena.com>
A client of mine had a project where users would fill out a form on a
web page, submit it, and then the following page had instructions to
print it out and submit it along with supporting documentation. The
client then had to enter in an identifying number from the printout
into another web form to indicate that the papers had been received.
To make this job easier I developed a barcode system, where the web
page that is printed has a barcode on it as a GIF file, and then when
it is received by my client, they can scan the barcode instead of
typing in the numbers.
I obtained permission from the client to make this barcode software
public, provided I do not reveal their identity (out of liability
fears). So I have released it into the public domain and uploaded it
into CPAN.
It uses the "CODE 128" encoding scheme, which has the pleasant
properties of being 1) very robust in terms of error prevention, 2)
can encode all 128 7-bit ASCII characters, and 3) has a mode which is
very efficient for encoding streams of digits. It has also been
adopted by the same folks who brought you UPC and ECC codes, for use
on shipping packages, so it is widely used and most modern barcode
readers support it.
If you plug the barcode reader into your keyboard port you can even
scan barcodes into a web browser's form elements.
Look for it in the authors/id/WRW directory on CPAN, or visit my web
site at http://www.bayview.com/perl/modules.shtml for more information.
--Bill.
--
William R Ward http://www.bayview.com/~hermit/ hermit@bayview.com
It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
twelve dancing rabbits singing about toilet paper. -- Rod Serling
------------------------------
Date: 31 Mar 1999 13:24:51 GMT
From: "Pen and Ron Savage" <rpsavage@ozemail.com.au>
Subject: ANNOUNCE: CGI::Formalware
Message-Id: <7dt7n3$l27$1@play.inetarena.com>
The Perl module CGI::Formalware is now available from CPAN
and from my web site http://www.ozemail.com.au/~rpsavage.
Documentation is in the module, in POD format, and can be
extracted with
Prompt>pod2html -infile=Formalware.pm -outfile=Formalware.html
Some parts of the POD follow...
NAME
----
CGI::Formalware.pm - Convert an XML file into a suite of CGI forms.
SYNOPSIS
--------
In your browser, type: localhost/cgi-bin/x.pl
where x.pl contains nothing more than:
#!perl -w
use integer;
use strict;
use lib 'C:/Perl';
use lib 'C:/Perl/Scripts/General'; # Ie $PERL5LIB.
use CGI::Formalware;
my($form) = CGI::Formalware -> new({'form2file' => 1, 'debug' => 1});
$form -> process();
exit(0);
Upon starting, CGI::Formalware.pm asks for the name of your XML file, which
is assumed to be in cgi-bin/.
DESCRIPTION
-----------
To provide a type of repository for frequently used scripts, which can then
be executed
locally or remotely (via Net::Telnet), by just entering a password (for
remote scripts),
and clicking.
AUDIENCE
--------
Webmasters.
SECURITY
--------
None. Even worse, CGI::Formalware.pm is designed to circumvent a web
server's
concept of what Apache calls DocumentRoot.
CONSTRUCTOR new
---------------
new takes either no parameters, or an anonymous hash. See the example above.
Keys and values recognized are:
'debug' => '1' means turn on debugging. At the moment this opens and closes
the
file CGI-Formalware.log, but does not write anything to it
'form2file' => '1' means output each form to a file, using the name given
by the form's formFileName attribute. The forms are written to cgi-bin/.
If the form has no such attribute, this option is ignored. See example below
'timeScripts' => '1' means report elapsed time at the end of each script's
output
HIGHLIGHTS
----------
Read an XML file, whose format is fixed, and generate a suite of CGI forms
A cascading style sheet can be specified for each form individually
A Table of Contents may appear on each form
Each form is more-or-less assumed to contain a list of scripts
Entities in the XML correspond to a few functions available in Lincoln
Stein's
CGI.pm. Eg: textField, radioGroup, horizontalRule. Over time, more functions
will
be added
A textField with the name 'password' is treated as a password field. Also,
the entity 'script' defines a Unix- or DOS-type batch file
These entities produce on-screen fields, or, in the case of the scripts, a
vertical array of radio buttons
So, to run a script you fill in whatever fields the script uses and then
select
that script
Macros in the scripts, eg %fileName% are expanded with the current value of
the
field whose name appears between the % signs
A script whose last line is 'ftp -n -v' is recognized and handled specially.
Your form must contain textFields called 'host', 'username' and 'password'
and
'fileName'. A binary 'get' is performed. This will be made more flexible one
day
Scripts have an attribute 'type', which can be 'local' or 'remote'.
Remote scripts are passed to Net::Telnet, on the assumption that you know
what
you are doing. Your form must contain textFields called 'host', 'username'
and
'password'
NAVIGATION
----------
Forms are linked with 'Previous form', 'Next form' buttons.
Any previously-entered textFields, except those whose name is 'password',
are
remembered when you return to a form. This is very convenient.
The password values are zapped by CGI.pm, not by me. This is a security
feature.
It means you can walk away from your system and not have someone gain
automatic
access to a remote system.
CASCADING STYLE SHEETS
----------------------
Each form entity may have a 'css' attribute, giving the name of the CSS file
for
that form. These attribute values are like '/CGI-Formalware.css', which,
under
Apache, means this value is prefixed with DocumentRoot. That is, the path to
the
CSS is a URI, and will not be seen if in cgi-bin/.
The compulsory elements are: H1, H2 and P.TOC.
See the POD for details.
XML FILE FORMAT
---------------
See the POD for details.
REQUIRED MODULES
----------------
CGI
Net::Telnet
XML::DOM
--
Cheers
Pen and Ron Savage
rpsavage@ozemail.com.au
http://www.ozemail.com.au/~rpsavage
------------------------------
Date: 31 Mar 1999 13:20:32 GMT
From: Paul Sharpe <paul@miraclefish.com>
Subject: ANNOUNCE: DbFramework-1.07
Message-Id: <7dt7f0$l11$1@play.inetarena.com>
file: $CPAN/authors/id/P/PS/PSHARPE/DbFramework-1.07.tar.gz
size: 32416 bytes
md5: 6b55e6ebed54dfdb5d516f0bd56d32db
DbFramework is a collection of classes for manipulating DBI databases.
The classes are loosely based on the CDIF Data Model Subject Area.
This module will help you to
- Present data model objects (tables, columns) as HTML
- Add persistency to your Perl objects
- Manipulate DBI databases through an HTML forms
interface
28-03-1999 Paul Sharpe <paul@miraclefish.com>
----------------------------------------------------------------------
RELEASE 1.07
Highlights
==========
+ Support for Msql (and potentially all DBI drivers.)
+ Improved template support.
--
paul@miraclefish.com
------------------------------
Date: 31 Mar 1999 13:26:52 GMT
From: Martin Schwartz <schwartz@cs.tu-berlin.de>
Subject: ANNOUNCE: Document::Info 0.01
Message-Id: <7dt7qs$lca$1@play.inetarena.com>
Welcome to a new Module!
Document::Info v0.01 - Determine the file type of office documents.
(Currently mainly, cough, supported: MS Excel, MS Powerpoint and MS Word.)
DESCRIPTION
The module tries to figure out the document type of Office files. It utilizes
OLE::Storage to determine the file type of Windows documents. The module is
in a very early state.
Along with it comes the little demo application "lfile". If Document::Info
cannot yield the documents type it simply utilizes the well known file(1).
I'd enjoy your feedback about the package hierarchy "Document::Info" and
like especially to know if you regard the module being useful at all.
EXAMPLE
use Document::Info;
if ( $Info=Document::Info->new($fileName) ) {;
# $Info constructed, that means something has been determined.
# Fetch the currently supported properties.
$type = $Info -> getType ( );
$rev = $Info -> getRevision ( );
$os = $Info -> getOS ( );
if ( $type eq $Info->cMSExcel() ) {
# Do something. Note: when checking a type or an operating System
# always use the string constants like cMSExcel().
}
if ( !$revision ) {
# revision not determined.
}
} else {
# Document type could not be determined.
}
LOCATION
Document-Info-0.01.tar.gz
is to be found at your favorite CPAN site in my directory, something:
CPAN/modules/by-author/Martin_Schwartz/
or at:
http://www.cs.tu-berlin.de/~schwartz/perl/
--
// Le degre zero de l'ecriture? Zero probleme!
------------------------------
Date: 31 Mar 1999 13:23:45 GMT
From: Ave Wrigley <wrigley@cre.canon.co.uk>
Subject: ANNOUNCE: HTML::Summary 0.013
Message-Id: <7dt7l1$l1v$1@play.inetarena.com>
HTML::Summary is a module to extract a summary from an HTML page,
somewhat like that which might be included in a <META NAME=DESCRIPTION>
tag in the page head. The interface allows you to specify a maximum
length for the summary generated. It does so using the location
heuristic, which determines the value of a given sentence based on its
position and status within the document. For example, headings, section
titles and opening paragraph sentences may be favoured over other
textual content.
The distribution contains a number of other modules that HTML::Summary
uses; these are bundled with HTML::Summary because I am still open to
suggestions on the interface / namespace of these modules for this early
release. The other modules are:
Text::Sentence - a module that splits text into constituent sentences.
Lingua::JA::Jcode - a perl5 wrapper around Kazumasa Utashiro's jcode.pl
library for detecting / converting Japanese mutlibyte character
encodings.
Lingua::JA::Jtruncate - a module for truncating Japanese text without
breaking multibyte character encodings.
The HTML::Summary distribution is available through CPAN:
ftp://ftp.perl.org/pub/CPAN/authors/id/A/AW/AWRIGLEY/HTML-Summary-0.013.readme
ftp://ftp.perl.org/pub/CPAN/authors/id/A/AW/AWRIGLEY/HTML-Summary-0.013.tar.gz
I would be grateful for any comments or suggestions on any of these
modules.
Ave.
--
Ave Wrigley, mailto:wrigley@cre.canon.co.uk
Web Group, http://www.cre.canon.co.uk/
Canon Research Europe, tel: +44-1483-448844
Guildford GU2 5YJ, U.K. fax: +44-1483-448845
------------------------------
Date: 31 Mar 1999 13:22:27 GMT
From: Sami Itkonen <si@iki.fi>
Subject: ANNOUNCE: HTML::Validator 0.07
Message-Id: <7dt7ij$l1l$1@play.inetarena.com>
Introduction
HTML::Validator is a perl module for validating HTML (or SGML/XML) documents.
It does this by using nsgmls, which is the core every validator engine on the
web. Documents on the web can also be checked with the help of LWP.
Features
- Beta support for XML and XHTML (needs version 1.3 of nsgmls)
- Can validate documents locally or externally (with LWP)
- Documents can be validated against a different dtd than the one specified
in the file
- The parser can be customized
Downloading
The latest version is available from CPAN
<http://www.perl.com/CPAN/authors/id/S/SA/SAIT/HTML-Validator-0.07.tar.gz>
and from the home page.
Home page
The home page is at <http://www.iki.fi/si/HTML-Validator/>.
--
Email: si@iki.fi, WWW: <URL:http://www.iki.fi/si/>
------------------------------
Date: 31 Mar 1999 13:23:10 GMT
From: Tim Potter <tpot@acronym.anu.edu.au>
Subject: ANNOUNCE: Net::Pcap 0.03
Message-Id: <7dt7ju$l1u$1@play.inetarena.com>
Available now from a CPAN near you. Net::Pcap is a Perl interface to
the LBL pcap(3) library for packet capture systems. Version 0.03 is a
re-implementation of Peter Lister's original version and contains the
following improvements:
- all pcap library functions fully implemented
- various bug fixes
- packet header and statistical information passed as
"native" perl hashes
- POD documentation
The source code for the LBL pcap library can be found at
ftp://ftp.ee.lbl.gov/libpcap.tar.Z. If you're running Linux, there
should be a packaged up version of libpcap available for your system.
Check the nearest mirror site of your favourite distribution.
Tim.
--
Tim Potter, System Admin/Programmer, Head Bee Guy
Advanced Computational Systems CRC, RSISE Bldg Australian National University,
Canberra 0200, AUSTRALIA Ph: +61 2 62798813 Fax: +61 2 62798602
------------------------------
Date: 31 Mar 1999 13:21:13 GMT
From: Piotr Klaban <makler@man.torun.pl>
Subject: ANNOUNCE: Plotter 1.0
Message-Id: <7dt7g9$l1c$1@play.inetarena.com>
This is a first public release of Plotter perl module,
a perl binding to C++ two-dimensional plotting library
- libplotter from the GNU plotutils distribution.
(libplotter is a (new) C++ equivalent of libplot library from
the plotutils).
This distribution is available at
http://w3.man.torun.pl/~makler/prog/Plotter/
http://w3.man.torun.pl/~makler/prog/Plotter/Plotter-1.0.tar.gz
There is a link to the examples.
I will be grateful for any comment on this module.
Piotr Klaban
--
makler@man.torun.pl
------------------------------
Date: 31 Mar 1999 13:20:48 GMT
From: Paul Sharpe <paul@miraclefish.com>
Subject: ANNOUNCE: TextStructured-0.02
Message-Id: <7dt7fg$l15$1@play.inetarena.com>
file: $CPAN/authors/id/P/PS/PSHARPE/TextStructured-0.02.tar.gz
size: 4682 bytes
md5: dd7937a44d09b0206f942e6dc4b57e20
Text::Structured is a class for manipulating fixed-format pages of
text. It contains methods for extracting text from the page.
History
=======
25-Mar-1999 Paul Sharpe <paul@miraclefish.com>
----------------------------------------------------------------------
RELEASE 0.01
First CPAN release.
RELEASE 0.02
Fixed typo in README.
--
paul@miraclefish.com
------------------------------
Date: 31 Mar 1999 13:24:18 GMT
From: Russ Allbery <rra@stanford.edu>
Subject: ANNOUNCE: Tie::ShadowHash 0.3 now available
Message-Id: <7dt7m2$l26$1@play.inetarena.com>
I've just uploaded a new Perl module, Tie::ShadowHash, to PAUSE. It
should be showing up on CPAN shortly, or you can download it directly from
<URL:ftp://ftp.eyrie.org/pub/software/modules/ShadowHash-0.03.tar.gz>.
Summary, taken from the README:
If you have a bunch of separate sources of data in the form of Perl
hashes, tied hashes (of whatever type, including on-disk databases tied
with DB_File, GDBM_File, or similar modules), or text files that you
want to turn into hashes, and you want to be able to query all of those
sources of data at once for a particular key without having to check
each one of them individually each time, this module is what you're
looking for. If you want to use a hash-like data source, even just one,
but make modifications to its data over the course of your program that
override its contents while your program runs but which don't have any
permanent effect on it, then this module may be what you're looking for.
Tie::ShadowHash lets you create a "shadow hash" that looks like a
regular Perl hash to your program but behind the scenes queries a whole
list of data sources. All the data sources underneath have to also
behave like Perl hashes, but that's the only constraint. They can be
regular Perl hashes or other tied hashes, including tied DB_File or
GDBM_File hashes or the like to access on-disk databases. All data
sources are treated as read-only; modifications to any data is stored in
the shadow hash itself, and subsequent accesses reflect any
modifications, but none of the data sources are changed.
See the POD documentation for complete details, features, and usage.
This is another side product of my work on News::Gateway that seemed
generally useful. It's only a couple of day's worth of coding effort so
far, and is quite simple, but I didn't see anything like it already on
CPAN.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 31 Mar 1999 13:22:44 GMT
From: Ave Wrigley <wrigley@cre.canon.co.uk>
Subject: ANNOUNCE: WWW::Sitemap 0.001
Message-Id: <7dt7j4$l1m$1@play.inetarena.com>
WWW::Sitemap is a perl module which can be used to generate a site map,
given a root URL for a site. It is distributed with the sitemapper.pl
script, which includes a number of example formats for sitemaps,
including an HTML bulleted list, a dynamic HTML folding tree, based on
Jef Perlman's javascript Tree class (see
http://developer.netscape.com/docs/examples/dynhtml/tree.html), and a
plain text indented list.
The distribution also includes the LWP::AuthenAgent module, which is
used by sitemapper.pl to support user supplied username / password
authentication for access controlled pages. LWP::AuthenAgent is a simple
subclass of the LWP::UserAgent module. I have tried to make the
sitemapper.pl script as compatable as possible with previous sitemapper
releases.
This distribution is available though CPAN at:
ftp://ftp.perl.org/pub/CPAN/authors/id/A/AW/AWRIGLEY/sitemapper-1.007.tar.gz
ftp://ftp.perl.org/pub/CPAN/authors/id/A/AW/AWRIGLEY/sitemapper-1.007.readme
I would be grateful for any comment or suggestions on either of these
modules, or on the sitemapper.pl script. This is an early release of
both modules, so I would be open to suggestions on the namespace /
interface.
Ave Wrigley.
--
Ave Wrigley, mailto:wrigley@cre.canon.co.uk
Web Group, http://www.cre.canon.co.uk/
Canon Research Europe, tel: +44-1483-448844
Guildford GU2 5YJ, U.K. fax: +44-1483-448845
------------------------------
Date: 31 Mar 1999 13:25:49 GMT
From: hakan@hobbe.lub.lu.se (Hakan Ardo)
Subject: DBIx::HTMLView 0.4 uploaded to CPAN
Message-Id: <7dt7ot$l57$1@play.inetarena.com>
HTMLView is a set of modules to handle relational SQL databases
through a DBI interface and create web user interfaces to them. Among
it's features are the possibility to handle relations in the same
manner as fields and it is easily extended with additional field or
relation specifications as well as custom editors and viewers.
This new version's interface has been rearrange into a more natural
structure, based on DB, Table, Post, Field ... objects instead of just
a bunch of commonly used procedures. The idea is to be able to handle
relations and fields in the same way whenever possible and to make it
easy to add custom Field, Database or Relation objects handling
different kinds of fields or relation or even database handling
routines.
This unfortunately means the it is no longer backwards compatible.
A mailing list has been created for questions and discussion of the
usage and future development of HTMLView. To subscribe send a mail to
majordomo@af.lu.se with the command "subscribe htmlview in the body.
It is availible in the CPAN as:
authors/id/H/HA/HAKANARDO/DBIx-HTMLView-0.4.tar.gz
--
---------------------------------------------------------------
Name: Hakan Ardo
E-Mail: hakan@debian.org
WWW: http://www.ub2.lu.se/~hakan/sig.html
Public Key: Try "finger hakan@master.debian.org"
Fingerprint: E9 81 FD 90 53 5C E9 3E 3D ED 57 15 1B 7E 29 F3
Interests: WWW, Programming, 3D graphics
Thought for the day: As long as one understands, the
spelling does not matter :-)
---------------------------------------------------------------
------------------------------
Date: Wed, 31 Mar 1999 06:39:14 +0000
From: Adolphus Harris <harri006@email.uwp.edu>
Subject: flat file query Help!!!
Message-Id: <3701C312.3A0AEDC7@email.uwp.edu>
Hi,
I am searching a flat file and it works well when I have a few fields
per record.
I have gone up to 19 fields and the length of a record now extends four
lines in
a pico editor. The @database=<Sourcefile>; and subsequent 'split'
commands,will only
work with one line of ASCII text at a time. How do I read in an entire
record for splitting thereby avoiding the line wrap issue?
Thanks..,
Al.
------------------------------
Date: Wed, 31 Mar 1999 13:20:28 GMT
From: gellyfish@gellyfish.com (Jonathan Stowe)
Subject: Re: Guestbook Blank Entry
Message-Id: <370220dc.19581593@news.dircon.co.uk>
On Tue, 30 Mar 1999 18:47:15 GMT, Don Roby <droby@copyright.com>
wrote:
>In article <7dqgc0$b0s$1@nnrp1.dejanews.com>,
> solidice@my-dejanews.com wrote:
>> When I post to my guestbook, I get a blank entry on the return page. Since
>> the guestbook uses multicolored <TABLES> to display data, it is kinda
>> anonying. I'm not really sure, which variable in the visitorbook.pl, I should
>> delete to remove this. Any ideas, would be appreciated.
>
>It must be the variable assigned on line 17.
>
>If that doesn't work then I guess there must be a bug in my use of the
>Net::Psychic module.
>
No bug its just that Doris has hard time of it these last few weeks.
/J\
------------------------------
Date: Wed, 31 Mar 1999 13:02:59 +0100
From: "Jim Main" <jim@stv-mcr.freeserve.co.uk>
Subject: Hello World
Message-Id: <7dt2th$oef$1@news6.svr.pol.co.uk>
Thanks to all who recommended "Learning Perl on Win32 Systems."
I now understand the concepts and have read most of the book minus a
computer. However, I am currently trying one of the first examples in the
book and running it in the Perl Builder environment. I programmed,
#!/usr/local/bin/perl
print "What is your name? ";
$name = <STDIN>;
chomp $name;
print "Hello, $name!\n";
all it does however is print,
"What is your name? Hello !"
is it me or the Perl Builder environment.
ps. this is cut and pasted code so if the is a typo here it's probably the
cause.
Stephen Dishon
------------------------------
Date: 31 Mar 1999 13:25:13 GMT
From: Cameron Kaiser <cdkaiser@concentric.net>
Subject: HTTPi/0.7 Perl webserver released
Message-Id: <7dt7np$l55$1@play.inetarena.com>
Version 0.7 of the HTTPi webserver has been released. HTTPi is a fast,
miniaturised HTTP/0.9, /1.0, and /1.1-compliant webserver written 100%
in Perl and requiring no additional modules -- just the Perl executable.
Socket.pm, Net.pm and LWP *not* required.
New in version 0.7:
* Demonic HTTPi: daemonised HTTPi version (up to 25x faster than
inetd HTTPi); autothrottles to three maximum processes
* IP-based virtual hosting
* POST support, finally!
* Enhanced executable support
* HTTPerl: HTTPi's answer to mod_perl
The new version is being uploaded to CPAN, but you can get it and all
the documentation from the official HTTPi site at
http://stockholm.ptloma.edu/httpi/
Still just 6K!
--
Cameron Kaiser * cdkaiser.cris@com * powered by eight bits * operating on faith
-- supporting the Commodore 64/128: http://www.armory.com/~spectre/cwi/ --
head moderator comp.binaries.cbm * cbm special forces unit $ea31 (tincsf)
personal page http://calvin.ptloma.edu/~spectre/ * "when in doubt, take a pawn"
------------------------------
Date: Wed, 31 Mar 1999 13:43:29 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: Inserting Formfeed in report
Message-Id: <3702287D.D8E7D715@home.com>
[posted & mailed]
John Xllgerd Jensen wrote:
>
> open (MYREPORT, ">myreport.txt");
>
> report1;
>
> # Insert formfeed before report2:
> # ?????
> $- = 0; # set number of lines left = 0.
> # That should provoke a formfeed before next write report2
> # but this doesn't work
> # maybe because I'm not refering to the right filehandle??
Correct. Which filehandle are you writing to? MYREPORT. So that is
the filehandle that needs $- changed. In the absence of any other
selects, you are changing $- for STDOUT.
select MYREPORT;$- = 0;
You could add this to the select in your subroutine.
select((select(MYREPORT), $~ = "REPORT2", $- = 0)[0]);
--
Rick Delaney
rick.delaney@home.com
------------------------------
Date: Wed, 31 Mar 1999 12:24:42 GMT
From: massimobalestra@my-dejanews.com
Subject: Re: Install Perl on win* using cygwin
Message-Id: <7dt464$kqe$1@nnrp1.dejanews.com>
I tried several time to compile perl with cygwin32 but I did not reach the
goal.
In any case I succest you to create a symbolic link from
/cygwin32/cygwin32-b20/H-i586-cygwin32/bin
to
/bin
I suggest you to do the same thing for /etc.
Check that /bin is in your PATH
After this at least Configure should work.
Bye
Massimo
In article <3701F662.C7DB32E2@pacific.net.sg>,
neline@pacific.net.sg wrote:
> Whoops! I'm checking through /bin and found awk there.
> that means what? I have to get it on the right path?
>
> I have /Perl/perl5.005_02
> |
> -------cygwin32
> |
> -------cygwin-b20
> | |
> ------H-i586-cygwin32
> | |
> | -----bin (commands in here!)
> |
> |----rest of perl extracted from tarball
>
> Have I got cygwin in the right place?
>
> thanks in advance
>
> regards
>
> neline@pacific.net.sg wrote:
> >
> > Tried to install Perl on windows using cygwin.
> >
> > After running sh Configure it stops and says it needs 'awk'
> >
> > Searched cygnus but come up empty handed. Can someone help - do I really
> > need awk and if so where do I get it for use with cygwin. (Do I have to
> > build awk from scratch?)
> >
> > regards
>
Massimo Balestra
System Engineer
Torino Italy
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 31 Mar 1999 21:55:42 +1000
From: Mick <horizon@internetexpress.com.au>
To: Gisle Aas <gisle@aas.no>
Subject: Re: LWP..to use or not?
Message-Id: <37020D3E.387F7969@internetexpress.com.au>
So as previously suggested, would the best option be to use Net::FTP?
- Get all required files (Can I enforce which files to get eg .data
files only?)
- Then process them.
Is it possible to remotely process a file? (Parse each line for required
data), or would
it be quicker to just 'get' each file, and process them locally?
Thanks,
Mick
Gisle Aas wrote:
> Mick <horizon@internetexpress.com.au> writes:
>
> > I need to be able to fetch multiple data files from remote locations.
> > The data files are processed as the script runs.
> > I've had a look at LWP, but am not sure if this is the correct method
> > to use?
> > Say remote address http://127.0.0.1/datafiles/ contains 30 data files
> > I need to process, but I only want to parse the data files with a
> > particular extension -
> > No problems if local
> > @data_files = grep { /\.data$/ } readdir(DIR);
> > closedir(DIR);
> >
> > But how do I go about this with remotely located files?
>
> You can't, unless the server reveals the file names for you (possibly
> as an HTML page).
>
> --
> Gisle Aas
--
----------------------------------------------------------------
HORIZON Software Solutions
Visit Site - http://www.deakin.edu.au/~bellears/horizon/index.html
e-mail - mailto:horizon@internetexpress.com.au
----------------------------------------------------------------
------------------------------
Date: Wed, 31 Mar 1999 21:42:31 +0800
From: Alex <ex5316@netvigator.com>
Subject: Modify the file
Message-Id: <37022647.4663C09D@netvigator.com>
Hi,
I've a question.
After I open the file, then modify the data. How can I save the new data
to the file ?
Thank you
Alex
------------------------------
Date: Wed, 31 Mar 1999 07:49:46 -0500
From: "tavi" <tavi367@ibm.net>
Subject: Re: Q Mail::** - solved
Message-Id: <37021982@news1.us.ibm.net>
It seems that after explaining my problem to you fine folks, and re-reading
the documentation I have, I stumbled upon my answer.
Thanks anyway.
Walter
------------------------------
Date: Wed, 31 Mar 1999 15:42:50 +0100
From: "frank" <fvdm@dds.nl>
Subject: Script produced no output...
Message-Id: <7dt86q$4if$1@news2.xs4all.nl>
I'm trying to use the perlis.dll with SSI.
When I run the script from an URL it works fine, but when I'm trying to call
it with SSI it produces no output...
What am I doing wrong ?
------------------------------
Date: Wed, 31 Mar 1999 13:24:17 +0100
From: "Martin Doxsey" <m.doxsey@x400.icl.co.uk>
Subject: Re: Setting directory privs in NT
Message-Id: <3702123a.0@145.227.194.253>
Alternatively you could use the cacls or xcacls NT commands. I think that
the first is included with NT and the second comes with the NT Resource Kit.
Martin Doxsey
------------------------------
Date: Wed, 31 Mar 1999 01:55:16 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Some more newbie questions...
Message-Id: <ksgsd7.0g2.ln@magna.metronet.com>
Ben Janssen (btm.janssen@mailbox.kun.nl) wrote:
: I have some questions:
: 1. How should I use file handles to add text from a certain
: variable (EG $text = "foo")to a standard text file?? I know how
: to open a file handle [ open (BAR, ">>foo.txt"); ] But after
: that??
Perl FAQ, part 5:
"How do I change one line in a file/
delete a line in a file/
insert a line in the middle of a file/
append to the beginning of a file?"
: 2. Can different perl programs (EG foo.perl bar.perl &
: blaat.perl) work together and/or share variables??
Yes.
perldoc -f require
perldoc -f use
: 3. Which ways are there to get html-form-input from a url
: (http://bar.bar.bar/cgi-bin/foo.cgi?name=xxx)??
use the LWP::Simple module.
Modules are available at http://www.perl.com/CPAN/
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 31 Mar 1999 13:48:11 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Syntax error in embedded foreach loops
Message-Id: <7dt92r$4b2$1@pegasus.csx.cam.ac.uk>
Gabriel Richards <grichard@uci.edu> wrote:
>I'm new to Perl.
But you're using a very, very old Perl. I'd fix that before fixing
your script.
>My code is generating the following syntax errors:
>
>syntax error in file listings.cgi at line 32, next 2 tokens "$i @keywords"
>syntax error in file listings.cgi at line 36, next 2 tokens "}"
>syntax error in file listings.cgi at line 41, next 2 tokens "}"
>syntax error in file listings.cgi at line 47, next token "}"
Those are Perl4 error messages.
Mike Guy
------------------------------
Date: Wed, 31 Mar 1999 11:58:05 GMT
From: souhaib@my-dejanews.com
Subject: Unknown Error
Message-Id: <7dt2ka$jnu$1@nnrp1.dejanews.com>
Hello!
First, sorry, i know that my english is bad.
When i try to execute a CGI-Perl program in my page web, the program don't
execute.
So, when i consult the file "error.log", always the next message was writing:
Premature end of script headers: c:/program files/apache group/apache/cgi-bin/
[programme.pl]
Q: what means this message?
Q: Where is the problem?
Q: what the purpose solution?
NB: in the perl program's header, i put always "#!c:/perl/bin/perl.exe"
Thanks !
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 31 Mar 1999 13:24:51 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Use of LWP Modules
Message-Id: <922886746.686908@thrush.omix.com>
In comp.lang.perl.modules David Smith <david@bluewave.com> wrote:
: Trying to use the LWP modules to get a webpage so that I can work on it
: before outputting to a browser...
:
: use LWP::Simple;
: $url = "http://www.aurl,com";
: print (get $url);
:
: this works fine, but doesn't work when $url = "https://mysecureurl.com"
^^^^^
You need the Net::SSLeay module to make SSL connections with LWP.
: I've also tried to use
: use LWP::UserAgent;
: $ua = new LWP::UserAgent;
: $url = "http://www.aurl,com";
^^^
Could that be the problem?
--
-Zenin (zenin@archive.rhps.org)
Yah, Emacs is a good OS, but I prefer FreeBSD.
------------------------------
Date: Wed, 31 Mar 1999 12:53:50 GMT
From: ashishkjain@my-dejanews.com
Subject: which database to use in perl
Message-Id: <7dt5sq$m8t$1@nnrp1.dejanews.com>
I want to use a simple but effective database of perl on my website, which
could handel upto 40,000 records and provide routines for searching, inserting
,deleting ,frequent appending of the records say 1 record per second.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 31 Mar 1999 12:57:01 GMT
From: ashishji@hotpop.com
Subject: which database to use in perl? Help
Message-Id: <7dt62p$mjr$1@nnrp1.dejanews.com>
I want to use a simple but effective database of perl on my website, which
could handel upto 40,000 records and provide routines for searching, inserting
,deleting ,frequent appending of the records say 1 record per second.
Thanks
Ashish
ashishji@hotpop.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 31 Mar 1999 12:56:29 GMT
From: ashishkjain@my-dejanews.com
Subject: which database to use in perl? Help
Message-Id: <7dt61q$mji$1@nnrp1.dejanews.com>
I want to use a simple but effective database of perl on my website, which
could handel upto 40,000 records and provide routines for searching, inserting
,deleting ,frequent appending of the records say 1 record per second.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 5267
**************************************