[7794] in Perl-Users-Digest
Perl-Users Digest, Issue: 1419 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 5 20:08:27 1997
Date: Fri, 5 Dec 97 17:00:28 -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 Fri, 5 Dec 1997 Volume: 8 Number: 1419
Today's topics:
Re: ? on localtime(time); (Clay Irving)
Re: [?]-Array (Brandon S. Allbery KF8NH; to reply, change "void" to "kf8nh")
[Q] Master/Slave pty module ? ()
Re: Adding a directory to perl's include PATH at compil <luu_tran@geocities.com>
Re: Alphanumeric Ranges Using .. and ++ (Dean Inada)
ANNOUNCE: libnet-1.0603 <gbarr@pobox.com>
ANNOUNCE: Net::LDAPapi v1.39a (Unix & NT) <qa1049@ilms04.cig.mot.com>
ANNOUNCE: Tk::Multi v0.1 beta release <domi@marlis.grenoble.hp.com>
Any opinions/reviews of Perl Resource Kit? <andy_collier@customer_insight.com>
Re: Browser redirect in CGI? (brian d foy)
Envy 2.06 (first public release) <pritikin@mindspring.com>
Re: Fully qualifying variables <zenin@best.com>
JPL and embedded Java (was Re: Resource Kit Anomaly) (Brian Jepson)
Netadmin module Help Please!!!!! <xboyd@aol.com>
New module File::Tail (Matija Grabnar)
Newbie Seeking Perl Archives for programming examples (Dan Roberts)
Re: Newbie Seeking Perl Archives for programming exampl (brian d foy)
Re: Perl editor needed <tex@collegenet.spam-is-bad.com>
Perl for NeXT <andrew_gehring@mk.com>
Re: Perl for NeXT <steffi+@pitt.edu>
Re: perl with MS Access <chris@cglis.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 4 Dec 1997 20:41:32 -0500
From: clay@panix.com (Clay Irving)
Subject: Re: ? on localtime(time);
Message-Id: <667m4c$fc2@panix.com>
In <34873E8D.94882D2D@jonesinternet.com> Webmaster <jfoss@jonesinternet.com> writes:
>($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
>If I set these variable anyone know how to tell what $Yesterdays date
>was?
>I.e if $Today is (January) 1st, $Yesterday=(December) 31.
>Thanks in advance. I sure there is a snippet out there somewher but I
>can't find it.
Perl Modules are your friend.
Take a look at Date::Manip -- You can browse the pod at:
http://reference.perl.com/module.cgi?Date::Manip
--
Clay Irving <clay@panix.com> http://www.panix.com/~clay/
------------------------------
Date: Thu, 04 Dec 97 19:54:10 -0500
From: bsa@void.apk.net (Brandon S. Allbery KF8NH; to reply, change "void" to "kf8nh")
Subject: Re: [?]-Array
Message-Id: <34875132$14$ofn$mr2ice@speaker>
In <6673uh$nk7@panix2.panix.com>, on 12/04/97 at 03:31 PM,
pyz@panix.com (Max) said:
+-----
| What are the maximum elements possible in an array?
| Can I go over the number 256?
+--->8
In practice, it's limited by available memory. Theoretical maximum depends on
the system but is often 2**31 elements.
--
brandon s. allbery [Team OS/2][Linux][JAPH] bsa@void.apk.net
cleveland, ohio mr/2 ice's "rfc guru" :-) KF8NH
"Never piss off a bard, for they are not at all subtle and your name scans to
`Greensleeves'." ---unknown, quoted by Janet D. Miles in alt.callahans
------------------------------
Date: 5 Dec 1997 03:36:36 GMT
From: nicholas@neko.binary9.net ()
Subject: [Q] Master/Slave pty module ?
Message-Id: <slrn68etlt.id.nicholas@neko.binary9.net>
Quickie: is there a prewritten module for handling the finding/creation
of master/slave pty pairs? In a perfect world, it would work like this:
($master,$slave)=File::Pty->new;
where $master/$slave are FileHandles that I can instantly use...
--
___________________________________________________________________________
simple is elegant nicholas@binary9.net
___________________________________________________________________________
------------------------------
Date: 4 Dec 1997 23:50:53 GMT
From: "Luu Tran" <luu_tran@geocities.com>
Subject: Re: Adding a directory to perl's include PATH at compile time.
Message-Id: <35768.6611229167luutrangeocitiescom@207.217.245.11>
[posted & mailed]
On Thu, 04 Dec 1997, Marc Merlin <marc_merlin@magic.metawire.com> wrote:
>I would like to have several "site-perls", namely:
>
>/usr/local/lib/perlxxxx/site-perl
>/usr/local/lib/perlxxxx/project-name
>
[snip]
I believe the proper way to do this is:
use lib 'my-lib-path';
-- luu
http://www.bayscenes.com/np/mdonline/
Please remove the underscore _ in my address when replying by email
------------------------------
Date: 5 Dec 1997 04:13:14 GMT
From: dmi@delta1.deltanet.com (Dean Inada)
Subject: Re: Alphanumeric Ranges Using .. and ++
Message-Id: <667v0q$4s$1@news01.deltanet.com>
In article <348730BF.4A69@cae091.ed.ray.com>,
Mark Stallard <mrs@cae091.ed.ray.com> wrote:
> Tom Phoenix wrote:
>> Hmmm... You haven't yet given a full specification: What comes after
>> 1715A99999? It it 1715B00000 or 1715A100000? Or maybe 1715A9999A? :-)
>
>1715A99999, 1715B00000, 1715B00001 ... The number of characters
>doesn't change in a given sequence.
>Interestingly, Dean Inada (dmi@questrel.com) suggested a scheme that
If I had intended to post that suggestion to the net, I would have...
>resembled what I used originally:
>
>> @a = (reverse $foo) =~ /([zZ9]*)([0-9]*[A-Za-z]*)(.*)/;
>> for( @a ){ $_ = reverse $_ }
>> $a[0] =~tr/zZ9/aA0/;
>> $a[1]++;
>> $foo = join '',reverse @a;
>
>It might be more obvious to reverse @a twice, rather than reversing
>each field twice (as scalars) then reversing @a once as a list.
Sorry, the reversals did get confusing, how about:
@fields = ($next =~ /^(.*?)([a-zA-Z]*?\d*?)([9zZ]*)$/);
$fields[2] =~ tr/zZ9/aA0/;
$fields[1]++ if( $fields[1] != ''); #don't change length
$next = join '',@fields;
------------------------------
Date: 5 Dec 1997 01:51:38 GMT
From: Graham Barr <gbarr@pobox.com>
Subject: ANNOUNCE: libnet-1.0603
Message-Id: <667mna$4ia$1@news1.teleport.com>
I have just uploaded to PAUSE a new release of the libnet distribution,
it should appear on CPAN mirror sites soon
I belive this release fixes all reported problems (but I could be
wrong), The Changes are listed below.
If you do not want to wait for CPAN to mirror it then it is also
avaliable from
http://www.connect.net/gbarr/cpan/libnet-1.0603.tar.gz
Please also read the RADME.config file in the distribution.
libnet is a collection of perl modules which encapsulate the usage
of various protocols used in the internet community. These include
Net::FTP (RFC959)
Net::SMTP (RFC821)
Net::Netrc
Net::Cmd
Net::Domain
Net::Time (RFC867 & RFC868)
Net::NNTP (RFC977)
Net::POP3 (RFC1939)
Net::SNPP (RFC1861)
Net::PH
Net::Config
To install libnet you ***MUST*** have the following modules installed
IO::Socket
This release contains the following changes to the previous release
*** Patch 1.0603
Tue Nov 25 1997 <gbarr@pobox.com> (Graham Barr)
Net::FTP::I
- Fix to prevent ABOR being sent when xfer is complete
- Change to write() to ensure whole packet is sent
Net::FTP
- Moved $TELNET_ vars to top of file so that autosplit does not place
them
in the wrong file and cause "Use of undefined ...."
- Clarification on the result from ->size() added to docs.
- pasv_xfer changed to use stor as stou is not a "MUST-have" command
- added pasv_xfer_unique
Net::PH
- Documentation updates.
Mon Nov 17 1997 <gbarr@pobox.com> (Graham Barr)
t/nntp.t
- Modified to check for more groups before failure
Net::SMTP
- Corrected documentation for ->expand()
It should be avaliable on mirror sites soon from
http://www.perl.com/CPAN/authors/Graham_Barr/
Comments are always very welcome.
Copyright 1995-1997 Graham Barr. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
Share and Enjoy!
Graham <gbarr@pobox.com>
------------------------------
Date: 5 Dec 1997 01:52:15 GMT
From: Clayton Donley <qa1049@ilms04.cig.mot.com>
Subject: ANNOUNCE: Net::LDAPapi v1.39a (Unix & NT)
Message-Id: <667mof$4ir$1@news1.teleport.com>
Hello Everyone,
I have uploaded the latest version of the Net::LDAPapi module to PAUSE
and my web page, http://miso.wwa.com/~donley/.
This module allows users to manipulate and search an LDAP enabled
directories from PERL. The module is written mostly in C and has been
tested on various flavors of Unix with excellent results. The latest
versions also support Windows NT.
Special thanks to everyone who contributed bug reports, fixes, and ideas
for improvement.
Additional development on 1.40 should be more accelerated now that I
have mostly completed my move back to the USA. Please send any
questions, comments, and bug reports to: donley@wwa.com.
Clayton
====================================
Changes Since Last Announced Version
====================================
1.30 Tue Jul 22 17:19:36 CDT 1997
- Fixes Makefile.PL to add Kerberos libraries if needed. Also added
LDAP_AUTH_KRB* defines to LDAPapi.xs file.
- Changed all malloc to PERL5 safe versions.
- Now properly free all LDAPMod structures after ldap_add/ldap_modify
- Completely rewrote add and modify routines and added binary value
support to add and modify command
- Added ldap_get_values_len function to support retrieving binary
attributes.
1.31 Tue Jul 29 17:25:54 CDT 1997
- Added function prototypes for internal functions so that some C
compilers don't complain.
- Fixed the ldap_*_option functions for Netscape SDK users.
- Implemented fixes from Hallvard Furuseth <h.b.furuseth@usit.uio.no>
for ISODE support and lots of code cleanup, including a very nice
script to autogenerate a constant.h file. THANKS!
1.35 Tue Aug 26 15:44:25 CDT 1997
- Added SSL Functions when using Netscape SDK
- Added the following functions for non-Netscape SDKs (and ensured
that they now work properly for Netscape SDK users):
ldap_get_lderrno (to get errno from LDAP struct)
ldap_set_lderrno (to set errno from LDAP struct)
ldap_msgid (to obtain msgid from an LDAPMessage *)
ldap_msgtype (to obtain msgtype from an LDAPMessage *)
ldap_set_option (to set some LDAP * options)
ldap_get_option (to get some LDAP * options)
- Added support for a rebind process. Mostly untested, so let me know
how well this works for you. You can set this to a PERL routine
using ldap_set_rebind_proc($ld,\&perl_function_name), then make
sure that this function returns DN, PASSWORD, and AUTHTYPE.
- Added more code and documentation fixes from Hallvard Furuseth
- Fixed documentation/code errors noted by Al Grimstad <alg@att.com>
- Added ldap_compat.h for non-Netscape SDK users.
- Added Credits file containing people who have provided feedback
and fixes.
- Added Todo file containing list of things I'm working on (or
would like to be working on).
1.36 Fri Aug 29 14:54:38 CDT 1997
- Added ldap_get_all_entries, which is not a C API command, but
useful anyway. Thanks to Andreas Beck for some of the code to
make this possible.
- Included a few new examples (ldapwalk2.pl and web500.pl)
1.39 Mon Oct 27 15:33:12 CST 1997
- Added Al Grimstead's memory leak fix for ldap_get_all_entries.
- Added Windows NT 4.0 Support (using Perl5.004, not ActiveState Perl)
- Added finished web500.pl Gateway
- Improved memory handling in Add/Modify Routine
- Included updatepw.pl in the examples directory. This is a script
that can syncronize unix passwords into directories supporting
crypted passwords.
1.39a Tue Nov 25 16:37:35 CST 1997
- Version 1.39 "overimproved" memory handling (ugh!). It seemed to
dump core often, as it occasionally freed memory that Perl felt
very inclined to free on its own. Whoops! This is only a
bugfix release put out while I work on v1.40, which should have
additional OO interfaces into the library.
- In the process of debugging, also changed several scripts to run
under 'use strict' and 'perl -w'.
------------------------------
Date: 5 Dec 1997 01:52:56 GMT
From: Dominique Dumont <domi@marlis.grenoble.hp.com>
Subject: ANNOUNCE: Tk::Multi v0.1 beta release
Message-Id: <667mpo$4j8$1@news1.teleport.com>
Hello
Tk_Multi is a set of Tk composite widget to allow you to manage
several scrolled Text windows in your Toplevel window.
The manager allows you to hide or show any managed text window through a menu.
The text windows also have menus to increase, decrease the window size, and
a menu to print its content.
This module was written with perl5.004 and now works fine with Tk402.003.
A lots of bug were corrected thanks to Larry W. Virden tests. The interface
has not changed since version 0.03 (alpha), some new methods were added.
Here's the new line for the module list:
Tk::Multi bdpO Manages several text widgets under Tk DDUMONT
Cheers
--
Dominique_Dumont@grenoble.hp.com
------------------------------
Date: Thu, 04 Dec 1997 19:37:04 -0700
From: Andy Collier <andy_collier@customer_insight.com>
Subject: Any opinions/reviews of Perl Resource Kit?
Message-Id: <348768D0.7BB29B30@customer_insight.com>
Anyone buy this?
What REALLY comes with it? And is it worth the price/time/trouble?
Reagrds,
A.C.
------------------------------
Date: Thu, 04 Dec 1997 23:00:49 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Browser redirect in CGI?
Message-Id: <comdog-ya02408000R0412972300490001@news.panix.com>
In article <3487185a.15768141@news.digex.net>, editor@gardenweb.com wrote:
>On Wed, 03 Dec 1997 15:45:01 -0800, Brian Godden
><bgodden@imap1.apple.com> wrote:
>>print "Location: http://blah.com/page.html\n\n";
>>
>>But this only prints this statement to my browser. Any suggestions why
>>this doesn't work? Or suggestion on how to do this better? Would some
>>form of open work better?
>Is it possible you included the "content/text" statement before this
>one? The Location statement is instead of the content statement.
The HTTP Location header and Content-type header are not exclusive. in
fact, the HTTP specification states that an HTTP message body should be
sent with a redirection. the problem would be a blank line before
the Location header was sent.
--
brian d foy <comdog@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: 5 Dec 1997 01:51:08 GMT
From: Joshua Pritikin <pritikin@mindspring.com>
Subject: Envy 2.06 (first public release)
Message-Id: <667mmc$4hu$1@news1.teleport.com>
Name DSLI Description Info
----------- ---- -------------------------------------------- -----
Envy RmpO Shell independent environment-variable mgmt JPRIT
Envy is a shell-independent (sh/ksh/bash/zsh/csh/tcsh) solution for
environment-variable management:
1. Easily customizable profile/login scripts are included for booting
the environment upon login.
2. A mechanism is provided for setting environment-variables in a
variety of flexible ways.
3. Essential absolute paths are specified once. Everything else can
be relative.
Get it from http://www.perl.com/CPAN/authors/id/JPRIT/!
(Also see LinkTree & Manifest)
##################
# RE@ENT CHAN@ES #
##################
** 11-24-97 Released 2.06
- Initial public release.
----------------------------------------------------------------------
Here's what it looks like:
[joshua@grdevl137] ~% envy
dailydb-dev imag-dbo-testdb
x dev imag-dev-2513
dev-area-setup imag-dev-2519
fame imag-prod
framemaker java
x fvwm95-2.0.43a objstore
gcc x openwin
gems-1.9.1-dev printing
gems-2.0-dev prod
gems-2.0.alpha.14 prod-new
gems-dev research
gems-intl-rpts x reuters
gems-prod solaris
imag-2519 sunpro
imag-batch-hilarydb x sybase
imag-batch-proddb tcltk
imag-batch-testdb tcltk-7.6
imag-dbo-hilarydb tcltk-8.0
imag-dbo-proddb
The 'x' indicates 'loaded'.
[joshua@grdevl137] ~% envy list
All envys currently available (2.06):
dailydb-dev /nw/dev/usr/etc/envy/dailydb-dev.env
x dev /nw/dev/usr/etc/envy/dev.env
dev-area-setup /nw/dev/usr/mo/dev-area-setup.mo
fame /nw/dist/prod/mo/fame.mo
framemaker /nw/dist/prod/etc/framemaker.mo
x fvwm95-2.0.43a /nw/dev/usr/mo/fvwm95-2.0.43a.mo
gcc /nw/dev/usr/etc/envy/gcc.env
gems-1.9.1-dev /nw/dev/usr/etc/envy/gems-1.9.1-dev.env
gems-2.0-dev /nw/dev/usr/mo/gems-2.0-dev.mo
gems-2.0.alpha.14 /nw/dev/usr/etc/envy/gems-2.0.alpha.14.env
gems-dev /nw/dev/usr/etc/envy/gems-dev.env
gems-intl-rpts /nw/dist/prod/mo/gems-intl-rpts.mo
gems-prod /nw/dist/prod/mo/gems-prod.mo
imag-2519 /nw/dev/usr/etc/envy/imag-2519.env
imag-batch-hilarydb /nw/dev/usr/etc/envy/imag-batch-hilarydb.env
imag-batch-proddb /nw/dist/prod/etc/imag-batch-proddb.mo
imag-batch-testdb /nw/dev/usr/etc/envy/imag-batch-testdb.env
imag-dbo-hilarydb /nw/dev/usr/etc/envy/imag-dbo-hilarydb.env
imag-dbo-proddb /nw/dev/usr/etc/envy/imag-dbo-proddb.env
imag-dbo-testdb /nw/dev/usr/etc/envy/imag-dbo-testdb.env
imag-dev-2513 /nw/dist/prod/etc/imag-dev-2513.mo
imag-dev-2519 /nw/dist/prod/etc/imag-dev-2519.mo
imag-prod /nw/dev/usr/etc/envy/imag-prod.env
java /nw/dist/prod/etc/java.mo
objstore /nw/dist/prod/etc/objstore.mo
x openwin /nw/dev/usr/mo/openwin.mo
...
[joshua@grdevl137] ~% cat /nw/dev/usr/mo/openwin.mo
# X11 and Motif
#
PATH+=/usr/dt/bin:/usr/openwin/bin
MANPATH+=/usr/dt/man:/usr/openwin/man
LD_LIBRARY_PATH+=/usr/dt/lib:/usr/openwin/lib
OPENWINHOME=/usr/openwin
This means that when 'openwin' is loaded, two components are prepended
to the PATH, MANPATH, and LD_LIBRARY_PATH; and OPENWINHOME is set to
/usr/openwin. What makes envy unique is that YOU CAN ALSO UNLOAD
'openwin' to unprepend and unset each of the variables modified during
the load.
----------------------------------------------------------------------
* How does a typical install work?
First, edit envy_config.pm and install envy. Then you need to setup
the initial production & development (& test?) environments. $ETOP
needs to be set to the top of your production tree such that:
$ETOP/(bin|etc|include|lib|man|share|var)
You'll need an prod.env that looks like this:
ETOP=/nw/prod/usr
PATH+=/nw/prod/usr/bin
LD_LIBRARY_PATH+=/nw/prod/usr/lib
PERL5LIB+=/nw/prod/usr/lib/perl5
MANPATH+=/nw/prod/usr/man:/nw/prod/usr/lib/perl5/man
ENVY_PATH+=/nw/prod/usr/etc/envy
You can also create a dev.env file for development:
ETOP=/nw/dev/usr
PATH+=/nw/dev/usr/bin
LD_LIBRARY_PATH+=/nw/dev/usr/lib
PERL5LIB+=/nw/dev/usr/lib/perl5
MANPATH+=/nw/dev/usr/man:/nw/dev/usr/lib/perl5/man
ENVY_PATH+=/nw/dev/usr/etc/envy
Put both of these files in /nw/prod/usr/etc/envy/. To set up a
particular user for envy, all you have to do is replace $HOME/.profile
or $HOME/.login with symlinks:
ln -s /nw/prod/usr/etc/login/dot.profile $HOME/.profile
ln -s /nw/prod/usr/etc/login/dot.login $HOME/.login
Any old $HOME/dot files will be renamed if necessary (and not
deleted).
------------------------------
Date: 5 Dec 1997 03:05:14 GMT
From: Zenin <zenin@best.com>
Subject: Re: Fully qualifying variables
Message-Id: <881291279.673226@thrush.omix.com>
Allen Choy <achoy@us.oracle.com> wrote:
: I was wondering if anyone has a good explanation why the strict pragma
: would flag variables defined in a package needs to be fully qualified
: and not subroutines?
Strict 'subs' does require that subs be defined before use. This
is either by the full sub foo {}, or with use subs qw(foo).
BTW, variables don't need to be fully qualified, just defined. Eg,
you don't (and shouldn't...) need to do this:
package Foo;
$Foo::Bar = 'this is silly';
Instead, if it's a package global that you care to see from outside
the package scope use the vars pragma:
package Foo;
use vars qw($Bar);
$Bar = 'much better'; ## Can be seen as $Foo::Bar
If you don't need to see it out side the current package, make it a
"lexical scoped package global":
package Foo;
my $Bar = 'even better'; ## Can NOT be seen as $Foo::Bar
--
-Zenin
zenin@best.com
------------------------------
Date: 5 Dec 1997 03:15:31 GMT
From: bjepson@ids.net (Brian Jepson)
Subject: JPL and embedded Java (was Re: Resource Kit Anomaly)
Message-Id: <slrn68esd7.c85.bjepson@gelvis.ids.net>
In article <34829916.61AC@hotlava.com>, Gary Howland wrote:
>
>> But I would love to hear what modules etc. are discussed in the book
>> and what is this thing about the Java/Perl that Larry Wall wrote.
>
>The java stuff is, to be honest, piss poor. I was hoping for a perl ->
>java bytecode compiler -
I apologize for this bit of confusion - this was (and still is) one of
the original goals of JPL. It will happen, but the first consideration
was to nail down the glue between the two languages.
> instead I got java with embedded perl - big
>deal! Perl is trivial to embed, and this is just java with embedded
> perl, unless I'm much mistaken. I shall be releasing a free version of
>*perl with embedded java* (as oppossed to Larry Wall's java with
>embedded perl) in the near future.
[...]
You are mistaken - JPL allows developers to embed Java in Perl, and
Perl in Java. However, *Java* does not allow you to embed Java in Perl
in a usable fashion. The following paragraph, which is included in the
Utilities Guide, should help out. Admittedly, it is the *last* paragraph
in the book proper :-)
Embedding Java in Perl
======================
You may have noticed that all of our examples embed Perl in Java
rather than Java in Perl. While it is theoretically possible to
embed Java in Perl (and in fact, you can try it yourself--just say
"use JNI" at the front of your Perl script), there is a bug in Sun's
current Java implementation that prevents it from being useful, since
it dumps core if you try to do any I/O in Java. This is expected to
improve in the future when Sun switches to a native threads
implementation for Java.
In all fairness to JavaSoft, it's more of a wart than a bug. It's still
very bug-esque. You can find a detailed explanation of the "how and why"
of this wart at:
http://www.javasoft.com/people/pavani/techconf.html
Cheers,
--
Brian Jepson * (bjepson@ids.net) * http://users.ids.net/~bjepson
------------------------------
Date: 5 Dec 1997 01:24:28 GMT
From: "Xavier Boyd" <xboyd@aol.com>
Subject: Netadmin module Help Please!!!!!
Message-Id: <01bd0113$c149fd60$b70bcbd0@xavier>
Can you tell me what the passwordAge value should be if you want to
CreateUser and have the user's password never expire. I tried the $flag
for passwd_dont_expire (something to that effect). Thanks in advanced.
Please email answer to xboyd@mindspring.com
------------------------------
Date: 5 Dec 1997 01:53:35 GMT
From: matija.grabnar@arnes.si (Matija Grabnar)
Subject: New module File::Tail
Message-Id: <667mqv$4jo$1@news1.teleport.com>
Announcing a new module: File::Tail. Here is the README for the module:
The File::Tail package is designed for reading files which are continously
appended to (the name comes from the tail -f directive). Usualy such files are
logfiles of some description.
The package tries not to busy wait on the file, dynamicaly calcultaing
how long it should wait before it pays to try reading the file again.
The package should handle normal log truncations ("close; move; open"
or "cat /dev/null >file") transparently.
Currently this package requires Time::HiRes, because it often needs to sleep
for less than one second. (I don't beleive one should busy wait on a file
just because it gets more than one line/second).
The file logwatch is a simple example of use. Try it with
./logwatch /var/log/syslog 1 if you want to see how File::Tail works.
A future version of this module will probably return a tied filehandle.
To build this module, enter
perl Makefile.PL
make
make test
make install
If you have any problems, contact me at matija.grabnar@arnes.si
Copyright (c) 1997 Matija Grabnar.
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
--
"My name is Not Important. Not to friends.
But you can call me mr. Important" - Not J. Important
Matija.Grabnar@arnes.si
--
"My name is Not Important. Not to friends.
But you can call me mr. Important" - Not J. Important
Matija.Grabnar@arnes.si
------------------------------
Date: 5 Dec 1997 02:48:19 GMT
From: roberts_d@bms.com (Dan Roberts)
Subject: Newbie Seeking Perl Archives for programming examples
Message-Id: <roberts_d-0412972152230001@shiva4-2.bms.com>
Hello..I am a newbie PERL programming...I have pretty much worked my way through the 2 PERL books from O'Reilly.
I am wondering if there are PERL archives that are out there somwhere that people refer to??
I would like to use these as examples to draw from to write my own PERL.
In the books I have seen there never seems to be enough examples.>Thansk!!!.>DAn
--
Dan Roberts <<<<<Nature is Last at Bats>>>>>
Bristol-Myers Squibb
Princeton, NJ, USA, Planet Earth, Milky Way Galaxy
Internet Address>>> Roberts_Daniel_G.PRILVMS3@MSMAIL.BMS.COM
------------------------------
Date: Thu, 04 Dec 1997 23:07:57 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Newbie Seeking Perl Archives for programming examples
Message-Id: <comdog-ya02408000R0412972307570001@news.panix.com>
In article <roberts_d-0412972152230001@shiva4-2.bms.com>, roberts_d@bms.com (Dan Roberts) wrote:
>Hello..I am a newbie PERL programming...I have pretty much worked my way through the 2 PERL books from O'Reilly.
>I am wondering if there are PERL archives that are out there somwhere that people refer to??
have you tried <URL:http://www.perl.com>?
what sorts of programs do you want to write?
--
brian d foy <comdog@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: Thu, 04 Dec 1997 19:33:33 -0800
From: Austin Schutz <tex@collegenet.spam-is-bad.com>
Subject: Re: Perl editor needed
Message-Id: <3487760D.659@collegenet.spam-is-bad.com>
> are using Perl, and stripping the ^M off of each line of a file on the
> Unix side would be a fairly trivial task.
>
> I'll even bet that some of the more experienced readers of this
> newsgroup would be able to do it as a one-liner. Hmmm... any takers?
>
perl -e 'while (<>) { s/\015$//; print $_ ;}'
works for me.
cat dosified.txt | perl -e 'while (<>) { s/\015$//; print $_ ;}' >fixed
Austin
------------------------------
Date: Thu, 04 Dec 1997 17:27:24 -0700
From: Andrew Gehring <andrew_gehring@mk.com>
Subject: Perl for NeXT
Message-Id: <34874A6C.35A65881@mk.com>
This is a multi-part message in MIME format.
--------------93A3D375619009B9649E261F
Content-Type: multipart/alternative; boundary="------------B20CF1A9CB080915150ED62A"
--------------B20CF1A9CB080915150ED62A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Where would I find the source/binaries to/for perl (Version 5.X) for a
NeXT ?
adTHANKSvance
Andrew
--
Andrew M. Gehring Morrison-Knudsen Corporation
Senior Systems Administrator P.O. Box 73
andrew_gehring@mk.com Boise, ID. 83729
(208) 386-XXXX - Voice (208) 386-5039 - Fax
--------------B20CF1A9CB080915150ED62A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Where would I find the source/binaries to/for perl (Version 5.X) for a
NeXT ?
<BR>
<P>adTHANKSvance
<P>Andrew
<PRE>--
Andrew M. Gehring Morrison-Knudsen Corporation
Senior Systems Administrator P.O. Box 73
andrew_gehring@mk.com Boise, ID. 83729
(208) 386-XXXX - Voice (208) 386-5039 - Fax</PRE>
</HTML>
--------------B20CF1A9CB080915150ED62A--
--------------93A3D375619009B9649E261F
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Andrew Gehring
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Andrew Gehring
n: Gehring;Andrew
org: Morrison Knudsen
adr: P.O. Box 73;;;Boise;ID;83729;USA
email;internet: andrew_gehring@mk.com
title: Senior Systems Administrator
tel;work: (208) 386-XXXX
tel;fax: (208) 386-5039
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------93A3D375619009B9649E261F--
------------------------------
Date: Thu, 04 Dec 1997 20:42:13 -0500
From: Stefanie Bruninghaus <steffi+@pitt.edu>
Subject: Re: Perl for NeXT
Message-Id: <34875BF5.74DD@pitt.edu>
Andrew Gehring wrote:
>
> Where would I find the source/binaries to/for perl (Version 5.X) for a
> NeXT ?
>
You can find the binaries at:
http://www.peak.org/next/apps/devtools/perl/
or:
http://www.leo.org - somewhere in Programming/Languages
------------------------------
Date: 5 Dec 97 03:46:07 GMT
From: "Christopher Lambrou" <chris@cglis.com>
Subject: Re: perl with MS Access
Message-Id: <01bd0130$9d5cbb00$77712581@akis>
Take a look at Perl:ODBC at http://www.ActiveState.com/
Daveotlc <daveotlc@aol.com> wrote in article
<19971204170901.MAA01981@ladder02.news.aol.com>...
> I'm expanding an existing perl application to put data into an Access
database,
> then analyze it. I'd appreciate information from anyone who knows the
> programming interface between the two and can get me started. Clues
about
> related documentation will also be welcome.
>
> Enjoy,
> Dave Olson
> daveotlc@aol.com
>
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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.
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 1419
**************************************