[13964] in Perl-Users-Digest
Perl-Users Digest, Issue: 1374 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Nov 14 09:06:19 1999
Date: Sun, 14 Nov 1999 06:05:10 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <942588310-v9-i1374@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sun, 14 Nov 1999 Volume: 9 Number: 1374
Today's topics:
[ANNOUNCE] PDF::Create 0.01 (Fabien Tassin)
[Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
ANNOUNCE: DBD::XBase 0.155 -- has some SQL functions (Honza Pazdziora)
ANNOUNCE: Text::Ptml 1.6 - Procedural Template Merge La (Malcolm Dew-Jones)
ANNOUNCE: URI::Bookmarks 0.92 (Adam Spiers)
ANNOUNCEMENT: NEW VERSION: HTML::Template 1.1 <sam@tregar.com>
ANOUNCEMENT: Mail::IMAPClient v1.05 <david.kernen@erols.com>
Re: can't locate MD%.pm in @INC ??? <jonwon@catcha.com>
Re: how can i ask outlook express to download the email (Martien Verbruggen)
Re: how to create a random id? (Simon Cozens)
Re: mod_perl scripts reset? (Asher)
Re: Newbee needs some date functions . . . <no@spam.com>
Re: Newbee needs some date functions . . . <sb@sdm.de>
Re: Perl and commonsense part 2 (Abigail)
Re: return height and width of jpeg, gif accessed via u (Martien Verbruggen)
Re: Unicode Script mehkriakram@my-deja.com
Re: Unicode Script <flavell@mail.cern.ch>
We are looking urgently for 20 x Web Developers!!! <jonwon@catcha.com>
Win32::ODBC use of uninitialized value warnings <nmorison@ozemail.com.au>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 14 Nov 1999 13:23:15 GMT
From: fta@oleane.net (Fabien Tassin)
Subject: [ANNOUNCE] PDF::Create 0.01
Message-Id: <80md43$21p$1@play.inetarena.com>
I've just uploaded PDF::Create 0.01 to CPAN. It will be
available shortly there : http://search.cpan.org/search?dist=PDF-Create
It *is* already available on my own ftp site :
ftp://ftp.oleane.net/private/fta/perl/cpan/PDF-Create-0.01.tar.gz
Please note that if you are looking for a WYSIWYG PDF creator/editor or
if you don't know what Perl is, this announce is not for you.
Follow a part of the README :
NAME
PDF::Create - create PDF files
DESCRIPTION
PDF::Create allows you to create PDF documents using a large
number of primitives, and emit the result as a PDF file or
stream. PDF stands for Portable Document Format.
Documents can have several pages, a table of content, an
information section and many other PDF elements. More
functionnalities will be added as needs arise.
Documents are constructed on the fly so the memory footprint is
not tied to the size of the pages but only to their number.
SYNOPSIS
use PDF::Create;
my $pdf = new PDF::Create('filename' => 'mypdf.pdf',
'Version' => 1.2,
'PageMode' => 'UseOutlines',
'Author' => 'Fabien Tassin',
'Title' => 'My title',
);
my $root = $pdf->new_page('MediaBox' => [ 0, 0, 612, 792 ]);
# Add a page which inherits its attributes from $root
my $page = $root->new_page;
# Prepare 2 fonts
my $f1 = $pdf->font('Subtype' => 'Type1',
'Encoding' => 'WinAnsiEncoding',
'BaseFont' => 'Helvetica');
my $f2 = $pdf->font('Subtype' => 'Type1',
'Encoding' => 'WinAnsiEncoding',
'BaseFont' => 'Helvetica-Bold');
# Prepare a Table of Content
my $toc = $pdf->new_outline('Title' => 'Document',
'Destination' => $page);
$toc->new_outline('Title' => 'Section 1');
my $s2 = $toc->new_outline('Title' => 'Section 2',
'Status' => 'closed');
$s2->new_outline('Title' => 'Subsection 1');
$page->stringc($f2, 40, 306, 426, "PDF::Create");
$page->stringc($f1, 20, 306, 396, "version $PDF::Create::VERSION");
# Add another page
my $page2 = $root->new_page;
$page2->line(0, 0, 612, 792);
$page2->line(0, 792, 612, 0);
$toc->new_outline('Title' => 'Section 3');
$pdf->new_outline('Title' => 'Summary');
# Add something to the first page
$page->stringc($f1, 20, 306, 300,
'by Fabien Tassin <fta@oleane.net>');
# Add the missing PDF objects and the footer then close the file
$pdf->close;
Share and enjoy.
--
Fabien Tassin -+- fta@oleane.net
------------------------------
Date: Sun, 14 Nov 1999 11:24:02 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage942578641.27901@news.teleport.com>
Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 18 Aug 1999
[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Summer of
1998; of course, ongoing updates are made as needed. ]
For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).
http://www.cpan.org/doc/FAQs/
Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.
perldoc perlfaq
man perlfaq
If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.
If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.
http://www.cpan.org/
http://www.perl.com/CPAN/
http://www.cpan.org/doc/FAQs/FAQ/html/
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/
You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)
California ftp://ftp.cdrom.com/pub/perl/CPAN/
Texas ftp://ftp.metronet.com/pub/perl/
South Africa ftp://ftp.is.co.za/programming/perl/CPAN/
Japan ftp://ftp.dti.ad.jp/pub/lang/CPAN/
Australia ftp://cpan.topend.com.au/pub/CPAN/
Netherlands ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
Switzerland ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
Chile ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/
If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:
setdir usenet-by-group/news.announce.newusers
send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.
Have fun with Perl!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 14 Nov 1999 13:24:24 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: ANNOUNCE: DBD::XBase 0.155 -- has some SQL functions
Message-Id: <80md68$220$1@play.inetarena.com>
Hello,
due to popular demand, a new version of dbf handling driver DBD::XBase
(0.155), which I just uploaded to CPAN, supports SQL functions length,
trim, ltrim, rtrim, concat and substr.
Comments and suggestions are welcome.
Changelog is like
0.155 Sun Nov 7 15:43:59 CET 1999
XBase::SQL and DBD::XBase: arbitraty arithmetic expression
possible in the select list. NAME attribute works fine for them.
SQL functions length, *trim, concat and substr supported. Fixed
bug in XBase::SQL causing bad division results. The DBD::XBase
documentation revised.
t/5_dbd_select*: tests extended.
dbfdump: Accepts --SQL modifier to --info, prints structure
of the table as a create table SQL.
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
.project: Perl, DBI, Oracle, MySQL, auth. WWW servers, MTB, Spain, ...
------------------------------------------------------------------------
------------------------------
Date: 14 Nov 1999 13:21:49 GMT
From: yf110@victoria.tc.ca (Malcolm Dew-Jones)
Subject: ANNOUNCE: Text::Ptml 1.6 - Procedural Template Merge Language
Message-Id: <80md1d$1qe$1@play.inetarena.com>
Keywords: Ptml template perl merge
--
Ptml - Procedural Template Merge Language
http://www.cpan.org/modules/by-module/Text/Ptml0160.readme
http://www.cpan.org/modules/by-module/Text/Ptml0160.tgz
Ptml is used to merge Perl data into templates.
It provides macro expansion, loops, subroutines,
etc.
This version merges faster than previous
versions, and provides for much more flexible
merging capabilties. (And an "include file" bug
introduced in 1.5 was fixed.)
I have also moved this into the Text:: area as
this seems to be the place to put these things.
Comments, questions, feedback, to
73312.2317@compuserve.com
Malcolm Dew-Jones
------------------------------
Date: 14 Nov 1999 13:20:41 GMT
From: adam@thelonious.new.ox.ac.uk (Adam Spiers)
Subject: ANNOUNCE: URI::Bookmarks 0.92
Message-Id: <80mcv9$1q2$1@play.inetarena.com>
Greetings all,
I've just done the first release of my URI::Bookmarks suite. From the
README:
-------- 8< -------- 8< --------
URI::Bookmark* is suite of modules for parsing, manipulation and
export of collections of bookmarks of various formats.
Currently only Netscape bookmark files are supported, although support
for the following formats is being considered (things will be speeded
up if people send me the official specs for the formats).
- Mozilla
- Microsoft Internet Explorer
- lynx
- Emacs/W3
- ncftp
- lftp
- Opera
- w3m
Other suggestions/patches are very welcome.
-------- 8< -------- 8< --------
The actual modules are:
bdp0 URI::Bookmarks
- a class for manipulation of collections of bookmarks, and
import and export between different storage formats, using
the modules below.
bdp0 URI::Bookmarks::Netscape
- backend routines for manipulation of Netscape bookmarks files.
bdp0 URI::Bookmark
- a subclass of Tree::DAG_Node, encapsulating generic entries
in a collection of bookmarks.
bdp0 URI::Bookmark::Netscape
- backend routines for manipulation of Netscape bookmark entries.
It's been uploaded to PAUSE and will hopefully be appearing on CPAN
mirrors near you soon, but in the mean time you can grab the latest
version from:
http://www.new.ox.ac.uk/~adam/computing/URI-Bookmarks/
Please play with it and send me lots of feedback!
Adam
--
--- adam@spiers.net --- musician and hacker --- http://www.new.ox.ac.uk/~adam/
echo '$_=bless[q]]],q;_;;sub s;{local$_=shift;push@$_,++$0,pop(@$_).$s;;$_}($,
=eval((join"\$_->[",qw)Just Another Perl Hacker)).q)$_->[1]]]])))=~s~((?<=.(?{
++$*})))?_::~$*&&$"~egx,print""=>""=>'|perl -ln0e';s;s\;;_::AUTOLOAD$1;g;eval'
------------------------------
Date: 14 Nov 1999 13:22:10 GMT
From: Sam Tregar <sam@tregar.com>
Subject: ANNOUNCEMENT: NEW VERSION: HTML::Template 1.1
Message-Id: <80md22$1qn$1@play.inetarena.com>
NAME
HTML::Template - a Perl module to use HTML Templates
CHANGES
1.1
- Lifted requirement that <TMPL_INCLUDE>s be alone on a line
- Added "path" option to new() to manipulate search path for
templates.
- bug fixes
DESCRIPTION
This module attempts make using HTML templates simple and natural. It
extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
<TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file
written with HTML and these new tags is called a template. It is
usually saved separate from your script - possibly even created by
someone else! Using this module you fill in the values for the
variables, loops and branches declared in the template. This allows
you to seperate design - the HTML - from the data, which you generate
in the Perl script.
This module is licenced under the GPL. See the LICENCE section of the
README.
AVAILABILITY
The module is available on CPAN. You can get it using CPAN.pm or go
to:
http://www.cpan.org/authors/id/S/SA/SAMTREGAR/
MOTIVATION
It is true that there are a number of packages out there to do HTML
templates. On the one hand you have things like HTML::Embperl which
allows you to freely mix Perl with HTML. On the other hand lie
home-grown variable substitution solutions. Hopefully the module can
find a place between the two.
One advantage of this module over a full HTML::Embperl-esque solution
is that it enforces an important divide - design and programming. By
limiting the programmer to just using simple variables and loops in
the HTML, the template remains accessible to designers and other
non-perl people. The use of HTML-esque syntax goes further to make
the format understandable to others. In the future this similarity
could be used to extend existing HTML editors/analyzers to support
this syntax.
An advantage of this module over home-grown tag-replacement schemes is
the support for loops. In my work I am often called on to produce
tables of data in html. Producing them using simplistic HTML
templates results in CGIs containing lots of HTML since the HTML
itself could not represent loops. The introduction of loop statements
in the HTML simplifies this situation considerably. The designer can
layout a single row and the programmer can fill it in as many times as
necessary - all they must agree on is the parameter names.
For all that, I think the best thing about this module is that it does
just one thing and it does it quickly and carefully. It doesn't try
to replace Perl and HTML, it just augments them to interact a little
better. And it's pretty fast.
DOCUMENTATION
The documentation is in Template.pm in the form of POD format
perldocs. Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.
CONTACT INFO
This module was written by Sam Tregar (sam@tregar.com) for Vanguard
Media (http://www.vm.com). You can join the HTML::Template
mailing-list by sending a blank message to
htmltmpl-subscribe@lists.vm.com.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 14 Nov 1999 13:22:34 GMT
From: David Kernen <david.kernen@erols.com>
Subject: ANOUNCEMENT: Mail::IMAPClient v1.05
Message-Id: <80md2q$1qq$1@play.inetarena.com>
Mail::IMAPClient is now available on CPAN in
http://cpan.valueclick.com/authors/id/D/DJ/DJKERNEN/Mail-IMAPClient-1.05.tar.gz.
Mail::IMAPClient is a perl-only module that implements the client-side
of the IMAP protocol, so you folks can use it to write special-purpose
IMAP clients.
It has been tested on a number of platforms, which are listed in the
README file.
Here is a summary of what's new:
Changes in version 1.05
-----------------------
Patched the 'make test' basic test to work correctly on systems that do
not
support double quotes in folder names. Thanks to Rex Walters for this
fix.
Added a new example script, build_dist.pl, that rumages through a folder
(specified on the command line) and collects the "From:" address, and
then
appends a message to that folder with all those addresses in both the
To: field
and the text, to facilitate cuting and pasting (or dragging and
dropping)
into address books and so forth. (Note that the message doesn't actually
get
sent to all those people; it just kind of looks that way.)
Also added another example, build_ldif.pl, that is similar to
build_dist.pl
except that instead of listing addresses in the message text, it creates
a
MIME attachment and attaches a text file in LDIF format, which can then
be
imported into any address book that supports LDIF as an import file
format.
This example requires the MIME::Lite module. MIME::Lite was written by
Eryq
(okay, Erik Dorfman is his legal name), and is totally available on
CPAN.
This distribution has now been tested on Mirapoint Message Server
Appliances
(versions 1.6.1 and 1.7.1). Many thanks to Rex Walters for certifying
this
platform and for providing a test account for future releases.
Changes in version 1.04
-----------------------
Fixed situation in which servers that include the "<tag> <COMMAND>
OK\r\n" line
as part of a literal (i.e. text delivered via {<length>}\r\n<length>
bytes\r\n)
caused the module to hang. This situation is pretty rare; I've only run
across
one server that does it (UW-IMAP). I'm sure it's a bug; I'm not sure
whose. ;-}
Many thanks to Thomas Stromberg for 1) pointing out this bug and 2)
providing
me with facilities to find and fix it!
Fixed potential bug in I/O engine that could cause module to hang when
reading
a literal if the first read did not capture the entire literal.
Cleaned up some unnecessary runtime warnings when a script is executed
with
the -w switch.
Added new tests to 'make test'. I just can't keep my hands off it! ;-)
Enhanced the append method and several tests in 'make test' to be more
widely
compatible. Successfully tested on UW-IMAP, Cyrus v1.5.19, Netscape
Messenger
4.1, and Netscape Messenger v3.6. If you know of others please add them
to
the list!
Fixed a bug in the separator method (new in 1.03) that caused it to fail
if
'inbox' was specified in lowercase characters as the method's argument.
Added a new example, imap_to_mbox.pl, contributed by Thomas Stromberg.
This
example converts a user's IMAP folders on an IMAP server into mbox
format.
Changes in version 1.03
-----------------------
Reworked several methods to support double-quote characters within
folder
names. This was kind of hard. This has been successfully tested with
create,
delete, select, and folders, to name the ones that come to mind.
Reworked the undocumented method that reads the socket to accept and
handle
more gracefully lines ending in {nnn}\r\n ( where nnn is a number of
characters to read). This seems to be part of the IMAP protocol although
I
am at a total loss as to where it's explained, other than a brief
description
of a "literal's" bnf syntax, which hardly counts.
Added separator object method, which returns the separator character in
use
by the current server.
Added is_parent method, which returns 1, 0, or undef depending on
whether a
folder has children, has no children, or is not permitted to have
children.
Added tests to 'make test' to test new function. Also changed 'make
test' to
support IMAP systems that allow folders to be created only in the user's
INBOX
(which is the exact opposite of what my IMAP server allows...oh, well).
Fixed a bug that caused search to return an array of one undef'ed
element
rather than undef if there were no hits.
Changes in version 1.02
-----------------------
Fixed bugs in search and folders methods.
Fixed bug in new method that ignored Clear => 0 when specified as
arguments to
new.
Changes in version 1.01
-----------------------
Fixed a bug in test.pl that caused tests to fail if the extended tests
were not used.
Added method 'parse_headers' to parse the header fields of a message in
the
IMAP store into a perl data structure.
Changes in version 1.00
-----------------------
Made cosmetic changes to documentation.
Fixed a bug introduced into the 'folders' method in .99.
Changed 'new' method so that it returns undef if an implicit connection
or
login is attempted but fails. Previous releases returned a
Mail::IMAPClient
object that was not connected or not logged in, depending on what
failed.
Changed installation script so that it reuses the parameter file for
test.pl
if it finds one. Installation can be run in the background if the .test
file
exists. Touching it is good enough to prevent prompts; having a
correctly
formatted version (as described in .test_template) is even better, as it
will
allow you to do a thorough 'make test'.
Changes in version .99
----------------------
Added the Rfc822_date class method to create RFC822-compliant date
fields in
messages being appended with the append method.
Added the recent, seen, and unseen methods to return an array of
sequence
numbers from a SEARCH RECENT, SEARCH SEEN, or SEARCH UNSEEN method call.
These methods are shortcuts to $imap->search("RECENT"), etc.
Added the recent_count method to return the number of RECENT messages in
a
folder. Contributed by Rob Deker.
Added 'use strict' compliance, courtesy of Mihai Ibanescu.
Fixed a bug in the search method that resulted in a list with one empty
member
being returned if a search had no hits. The search method now returns
undef
if there are no hits.
Added 'authenticate' method to provide very crude support for the IMAP
AUTHENTICATE command. The previous release didn't support AUTHENTICATE
at all,
unless you used very low-level (and undocumented) methods. With the
'authenticate' method, the programmer still has to figure out how to
respond to the server's challenge. I hope to make it friendlier in the
next release. Or maybe the one after that. This method is at least a
start,
albeit a pretty much untested one.
Added Rfc822_date class method to facilitate creation of "Date:" header
field when creating text for the "append" method, although the method
may
come in handy whenever you're creating a Date: header, even if it's not
in conjuction with an IMAP session.
Added more tests, which will optionally run at 'make test' time,
provided all
the necessary data (like username, hostname, password for testing an
IMAP
session) are available.
Changes in version 0.09
-----------------------
Thu Aug 26 14:10:03 1999 - original version; created by h2xs 1.19
------------------------------
Date: Sun, 14 Nov 1999 21:01:41 +0800
From: "John Wong" <jonwon@catcha.com>
Subject: Re: can't locate MD%.pm in @INC ???
Message-Id: <80mc60$ns8$1@mawar.singnet.com.sg>
If you are in Singapore or Malaysia, check this out!!
We are looking urgently for 20 x Web Developers!!!
High salary with benefits package!!!
Here is what you need:
If you enjoy developing web applications,
database applications and interactive
applications on the web, here is the job
for you!!
With 1-2 years related web programming experience,
well-versed in the following, C++, Java Programming,
CGI, Perl, MySQL, PHP, Oracle, Unix and Apache.
You must be internet-savvy, able to work long hours.
Diploma holders are encouraged to apply.
Students on holiday are encouraged to apply too.
If you are working now, we can negotiate to pay
your annual bonus.
Drop John a call at (65)733 6166 anytime NOW to
arrange for an interview. Hope to hear from you.
If you need to find out about us,
check out our web site @
http://www.catcha.com/pr.htm
--
+++++++++++++++++++++++
John Wong
CTO
Catcha.com
Phone: 65 733 6166
Fax: 65 733 0915
HP: 65 9655 2247
www.catcha.com.sg
Singapore's No.1 Local Search Engine Portal
+++++++++++++++++++++++
Eric Chin <eric.chin@pinnacle.co.uk> wrote in message
news:942233907.20408.0.nnrp-10.9e980b2b@news.demon.co.uk...
> Greetings,
>
> I am new to perl and we run a perl script which generates a reverse dns
> lookup file. This script successfully on perl 5.004 but I get the follwing
> error when I run it on perl 5.005 :
>
> "Can't locate MD5.pm in @INC (@INC contains:
> /usr/lib/perl5/5.00503/i386-linus /usr/lib/perl/perl5/5.00503
> /usr/lib/perl5/site_perl5/5.005/i386-linux /usr/lib/perl/site_perl5/5.005
.)
> at mkrdns.pl line 31.
> BEGIN failed--compilation aboarted at ./mkrdns.pl line 31."
>
> I have a look at the perl script and found line 31 is : 'use MD5;'. The
> MD5.pm file is in /usr/lib/perl5/site_perl directory
>
> Does anyone know what the error messages means and I do overcome this
error
> ?
>
> TIA
>
> Eric Chin
>
> Please reply to : eric.chin@pinnacle.co.uk
>
>
------------------------------
Date: 14 Nov 1999 11:39:34 GMT
From: mgjv@wobbie.heliotrope.home (Martien Verbruggen)
Subject: Re: how can i ask outlook express to download the email?
Message-Id: <slrn82t7tk.k9e.mgjv@wobbie.heliotrope.home>
[Followups set]
On Sun, 14 Nov 1999 05:43:04 +0800,
geofox <geofox@softhome.net> wrote:
> Hi,
> I have moved the email in /var/spool/mail
> to $HOME/mailbox by procmail but
> i can't download the email from RedHat 6 now????
>
> How can I ask outlook express to download the email
> in $HOME/mailbox?
> Other setting i need to setup in .procmailrc?!
Let's see...
mail -> comp.mail.*
Redhat -> redhat.*
Linux -> comp.os.linux.*
procmail -> procmail manual and mailing lists, comp.mail.misc
Outlook Express -> Contact your Microsoft vendor,
comp.os.ms-windows.apps.winsock.mail
microsoft.public.outlook*
I don't know shit about outlook, but if it uses IMAP or POP3, then you
need to look at the manuals for those.
Now... What in heaven's name made you decide to post this to a Perl
language group? I can, in all honesty, not even begin to figure out why
you thought that that would be appropriate at all. I mean, even though I
gripe about it, I can sometimes at least understand that people post CGI
questions here if they're clueless about CGI. But the combination of
things you describe led you to the conclusion that you should ask on a
Perl group?
_How_? _Why_?
Martien
--
Martien Verbruggen |
Interactive Media Division | Little girls, like butterflies, need
Commercial Dynamics Pty. Ltd. | no excuse - Lazarus Long
NSW, Australia |
------------------------------
Date: 14 Nov 1999 12:14:54 GMT
From: simon@brecon.co.uk (Simon Cozens)
Subject: Re: how to create a random id?
Message-Id: <slrn82t9tu.ime.simon@othersideofthe.earth.li>
Tom Briles (comp.lang.perl.announce):
>Abigail wrote:
>>
>> $id = '=' x 17;
>
>If there's one thing I've learned in the time I've been reading
>Abigail's posts, it's that she's obsessed with the number 17.
RTFJF:
random numbers: n. When one wishes to specify a large but random
number of things, and the context is inappropriate for N, certain
numbers are preferred by hacker tradition (that is, easily recognized as
placeholders). These include the following:
17 Long described at MIT as `the least random number'; see 23.
23 Sacred number of Eris, Goddess of Discord (along with 17 and 5).
--
It is better to wear chains than to believe you are free, and weight
yourself down with invisible chains.
------------------------------
Date: Wed, 10 Nov 1999 07:55:31 GMT
From: asher@magicnet.net (Asher)
Subject: Re: mod_perl scripts reset?
Message-Id: <slrn82ib88.1q5.asher@localhost.localdomain>
On Mon, 08 Nov 1999 19:52:46 +0100, Ulf Berger <ub@europe.de> wrote:
>how to reset scripts under mod_perl?
>
>i have an account on a werbserver supporting mod_perl,
>but i have no access to the mod_perl's config. so the
>questions is now, after uploading some updated scripts,
>how can i tell mod_perl to remove the old cached script
>versions? ("PerlFreshRestart On" returns only errors)
>can this done by perl5 code?
>
>thanks for any help,
>Ulf
Are your perl scripts modules or Registry scripts?
Modules are enabled with something like:
<Location /hello/world>
SetHandler perl-script
PerlHandler Apache::Hello
</Location>
in httpd.conf or equivalent. Registry scripts are much like CGI scripts and
are enabled with something like:
<Location /reg>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
again, in httpd.conf or equivalent.
Registry scripts are automatically stat'ed by Apache and reloaded whenever
they change. Modules are not. After modifying a module, the webmaster
needs to `apachectl graceful` in order to HUP Apache. Therefore you
probably don't want to use modules unless you're accessing features of the
Apache API which are not accessible to CGI/Registry.
But how do you know the web server is running mod_perl? What error message
did the "PerlFreshRestart On" directive yield? What file was the directive
placed in?
I hope some of this helps. I think, however, that I am missing something
critical to your problem.
------------------------------
Date: Sun, 14 Nov 1999 11:16:42 -0000
From: "Simon Brook" <no@spam.com>
Subject: Re: Newbee needs some date functions . . .
Message-Id: <80m58b$kps$1@supernews.com>
Yup thanks Martien. I WAS doing some development using
a) Trial and error!
b) Using Perl Builder (not using the active state build, it didn't want to
play (soft) ball)
c) Using a book (Perl from the Ground UP)
Actually, (it really was embarassing!) since posting the message about the
faq's, I went in search of them. It then dawned on me that while i was
installing the whole thing, I had been asked for the root of the HTML
(having also been asked whether I wanted it all in that format). Well I am
also using Personal Web Server (damned annoying that it really doesn't seem
to want to run cgi scripts etc - any suggestions?) and have been able to use
the entire thing from within that. And OH MY GOD. suddenly the whole thing
seems so much easier.!!!
So I promise that my next post to this fantastic newsgroup will be a
difficult problem!!
Thanks again to all who helped!
Martien Verbruggen <mgjv@wobbie.heliotrope.home> wrote in message
news:slrn82s69g.jb7.mgjv@wobbie.heliotrope.home...
> On Sun, 14 Nov 1999 01:03:44 -0000,
> Simon Brook <no@spam.com> wrote:
>
> > (On another slightly embarassing note, I see from reading some of the
> > postings that certain things are generally frowned upon. I really don't
know
> > any netiquette about news groups etc, and I'm afraid that I don't even
know
> > where the much referred to Perl FAQ is - ok now I have really shown my
> > ignorance I can just shy away into the corner . . . )
>
> Sorry, I missed this on first read.
>
> The Perl FAQ, and a large amount of documentation, all come with every
> installation of Perl. On unix machines, it's customary to access all
> this with man, on windows machines, with the ActiveState distribution,
> it's all installed as HTML, and you should have one of those shortcuts
> in your start menu. Most platforms share a utility called perldoc:
>
> # perldoc perl
> # perldoc perldoc
> # perldoc perlfunc
> # perldoc perltoc
> # perldoc perlfaq
> # perldoc perlfaq3
>
> To look at a function's documentation:
> # perldoc -f open
> # perldoc -f select
>
> To search the FAQ headers:
> # perldoc -q keyword
>
> The complete documentation, I believe, is also avalable via
> www.perl.com, but it's much easier to just install Perl locally. How
> else are you going to do any development anyway? :)
>
> Martien
> --
> Martien Verbruggen |
> Interactive Media Division | If at first you don't succeed, try
> Commercial Dynamics Pty. Ltd. | again. Then quit; there's no use
> NSW, Australia | being a damn fool about it.
------------------------------
Date: 14 Nov 1999 10:05:12 GMT
From: Steffen Beyer <sb@sdm.de>
Subject: Re: Newbee needs some date functions . . .
Message-Id: <80m1go$37t$1@solti3.sdm.de>
In article <slrn82rv7b.lmh.abigail@alexandra.delanet.com>, Abigail <abigail@delanet.com> wrote:
> && There are some other modules that might help, but I don't know if they
> && have parts written in C or not.
> Date::Manip hasn't - its design goal is to have functions for every
> common date manupilation operation, and to do it in 100% pure perl.
There is an "all-Perl" version of "Date::Calc" available which is called
"Date::pCalc". Ask J. David Eisenberg <nessus@best.com> (the author) where
you can download it from.
Hope this helps.
Best regards,
--
Steffen Beyer <sb@engelschall.com>
http://www.engelschall.com/u/sb/whoami/ (Who am I)
http://www.engelschall.com/u/sb/gallery/ (Fotos Brasil, USA, ...)
http://www.engelschall.com/u/sb/download/ (Free Perl and C Software)
------------------------------
Date: 14 Nov 1999 05:49:03 -0600
From: abigail@delanet.com (Abigail)
Subject: Re: Perl and commonsense part 2
Message-Id: <slrn82t8k2.rs3.abigail@alexandra.delanet.com>
Bart Lateur (bart.lateur@skynet.be) wrote on MMCCLXVI September MCMXCIII
in <URL:news:382e882c.241065@news.skynet.be>:
;;
;; Which is very fast compared to any other method. However, *who* in is
;; right mind would test only for existence of a key, if you're free to
;; choose whatever hash value you like?
The authors of Mastering Algorithms with Perl, and they explain why.
It's faster.
Abigail
--
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 14 Nov 1999 11:29:31 GMT
From: mgjv@wobbie.heliotrope.home (Martien Verbruggen)
Subject: Re: return height and width of jpeg, gif accessed via url
Message-Id: <slrn82t7ai.k9e.mgjv@wobbie.heliotrope.home>
On 14 Nov 1999 08:39:55 GMT, BLUESRIFT <bluesrift@aol.com> wrote:
> To all who have suggested that use of modules is preferable, I could
> not agree more. I even mentioned the likelihood that LWP could be of
> service. I sincerely apologize if I came off differently in my
> request for help. Of course I do not want the focus of this thread to
> be on my ineptness or the inadequacy of my host but the truth is that
> I do not control my host server nor can I Telnet which I believe
> prevents me from being able to install Perl modules properly or at
> least the Image::Size module via execution of Makefile.pl. I did
> expand the archive manually on my local drive and then FTP uploaded to
> my space on the server. Execution produced errors I will not pretend
> to understand.
Apologies if it sounded a bit harsh, but we do get an awful lof of
people around here who ask for this for the totally wrong reasons.
First of all: have you asked your ISP whether they are willing to
install it for you?
In the specific case of Image::Size, it's a pure perl module. There are
no C components to it, so a simple copy of the Size.pm file to the
appropriate place should do the job.
Create a directory somewhere, called perllib or so. Create a directory
Image, copy Size.pm in there, ***but make sure that the end of line
translation happens correctly*** if that's necessary (e.g. if you have a
win32 or Mac system, and your CGI runs on a Unix box).
Make sure to include the line
use lib '/path/to/perllib';
in the scripts that need it.
As for LWP, it will use URI, HTML::Parser, MIME::Base64, Net::FTP and
Digest::MD5 if available, but should run without them. Again, the whole
of libwww is pure perl, so a copy of all the modules should work without
a problem.
perl Makefile.PL PREFIX=/tmp/templib
make
make install
Copy the files from /tmp/templib/lib (or maybe a bit deeper than that)
to your perllib directory on your ISP's server. I'm not entirely sure
what the effects are of having some of the dependency modules installed
on your system, but not on your ISP's. I know at least one of the 5
requires compilation, so you may not be able to do that.
> I am not bragging about how stupid I am but I do know my limitations.
> It had also, indeed, occurred to me to attempt to extract the meat
> from the module but I am not even close to being that good. I suspect
> that code written for modules is probably as tight as it gets and
> probably also includes clever but complicating routines to help allow
> for most, if not all, possible eventualities at execution. For all I
> know there may also be module specific code intertwined with the
> "meat".
In the case of LWP I wouldn't really want to start extracting things.
For Image::Size it's not that hard.
Of course you can use Socket.pm or IO::Socket to do your own connection
stuff etc, but I would really work hard on trying to get the modules
installed before doing that.
But... I would really ask your ISP. They should install those modules
for you, and if they're not willing to do that, they should give you
telnet access.
Or go to another ISP :)
Martien
PS. More information in perlfaq8
# perldoc perlfaq8
How do I keep my own module/library directory?
How do I add the directory my program lives in to the
module/library search path?
How do I add a directory to my include path at runtime?
--
Martien Verbruggen |
Interactive Media Division | Failure is not an option. It comes
Commercial Dynamics Pty. Ltd. | bundled with your Microsoft product.
NSW, Australia |
------------------------------
Date: Sun, 14 Nov 1999 12:34:06 GMT
From: mehkriakram@my-deja.com
Subject: Re: Unicode Script
Message-Id: <80ma7v$57l$1@nnrp1.deja.com>
> Is it UTF-8, UTF-16, or something else? And by 'parse', do you mean
> 'convert to UCS-2 or UCS-4', or do you mean something else?
it could be anything
any language which is used on the computer. My job is mainly to manage
atleast 18 languages.
and cjkv is the fucking set of languages with about 11000 chars each
lang.
I just need to get started
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Sun, 14 Nov 1999 14:10:17 +0100
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Unicode Script
Message-Id: <Pine.HPP.3.95a.991114140743.1779A-100000@hpplus01.cern.ch>
On Sun, 14 Nov 1999 mehkriakram@my-deja.com wrote:
> > Is it UTF-8, UTF-16, or something else? And by 'parse', do you mean
> > 'convert to UCS-2 or UCS-4', or do you mean something else?
> it could be anything
So you don't even know what problem you've got.
> any language which is used on the computer.
So you _really_ don't understand what you're doing
> My job is mainly to manage atleast 18 languages.
You're not managing anything, on your own evidence. You're not even
managing to ask a coherent question, in spite of well-intentioned
usenauts trying to help you.
> and cjkv is the fu...
game over. *plonk*
------------------------------
Date: Sun, 14 Nov 1999 20:38:47 +0800
From: "John Wong" <jonwon@catcha.com>
Subject: We are looking urgently for 20 x Web Developers!!!
Message-Id: <80maqv$ojl$1@mawar.singnet.com.sg>
If you are in Singapore or Malaysia, check this out!!
We are looking urgently for 20 x Web Developers!!!
High salary with benefits package!!!
Here is what you need:
If you enjoy developing web applications,
database applications and interactive
applications on the web, here is the job
for you!!
With 1-2 years related web programming experience,
well-versed in the following, C++, Java Programming,
CGI, Perl, MySQL, PHP, Oracle, Unix and Apache.
You must be internet-savvy, able to work long hours.
Diploma holders are encouraged to apply.
Students on holiday are encouraged to apply too.
If you are working now, we can negotiate to pay
your annual bonus.
Drop John a call at (65)733 6166 anytime NOW to
arrange for an interview. Hope to hear from you.
If you need to find out about us,
check out our web site @
http://www.catcha.com/pr.htm
--
+++++++++++++++++++++++
John Wong
CTO
Catcha.com
Phone: 65 733 6166
Fax: 65 733 0915
HP: 65 9655 2247
www.catcha.com.sg
Singapore's No.1 Local Search Engine Portal
+++++++++++++++++++++++
------------------------------
Date: Sun, 14 Nov 1999 23:18:48 +1100
From: "Neale Morison" <nmorison@ozemail.com.au>
Subject: Win32::ODBC use of uninitialized value warnings
Message-Id: <5wxX3.2365$MZ.17530@ozemail.com.au>
Hello all.
I am experimenting with Win32::ODBC. I am getting a lot of uninitialized
value warnings when running with -w switch. My test script is very simple:
--
use Win32::ODBC;
use strict;
my $dsn = "TasklogD";
my $data = new Win32::ODBC($dsn);
if (!defined $data) { die "Couldn't connect to $dsn\n"};
my @tables = $data->TableList('','','','');
print join "\n", @tables;
$data->Close();
--
Am I leaving something out? I'd appreciate any help. Regards, Neale
--
Neale Morison
Wordface
Tel: 02 9555 8971 Fax: 02 9818 4257
Mobile: 0417 661 427
E-mail: mailto:nmorison@ozemail.com.au
Web: http://www.wordface.com.au
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>
Administrivia:
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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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.
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 V9 Issue 1374
**************************************