[27894] in Perl-Users-Digest
Perl-Users Digest, Issue: 9258 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jun 7 06:06:12 2006
Date: Wed, 7 Jun 2006 03:05:03 -0700 (PDT)
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, 7 Jun 2006 Volume: 10 Number: 9258
Today's topics:
Re: Howto self-delete files periodically with Perl <sbryce@scottbryce.com>
new CPAN modules on Wed Jun 7 2006 (Randal Schwartz)
newbie - changing value of lexical from outside of modu <null7@wp.pl>
Re: regular expression <rvtol+news@isolution.nl>
Sleep & print(f) problem <ppi@searchy.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 06 Jun 2006 09:11:40 -0600
From: Scott Bryce <sbryce@scottbryce.com>
Subject: Re: Howto self-delete files periodically with Perl
Message-Id: <ioednYG2Fvi-BhjZnZ2dnUVZ_vidnZ2d@comcast.com>
gundalav wrote:
> What does -A stands for? Where can I find information about this?
http://perldoc.perl.org/functions/-X.html
------------------------------
Date: Wed, 7 Jun 2006 04:42:11 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Wed Jun 7 2006
Message-Id: <J0H3qB.1zyv@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
WWW-Simpy-1.014
http://search.cpan.org/~beadsland/WWW-Simpy-1.014/
Perl interface to Simpy social bookmarking service
----
MARC-Errorchecks-1.11
http://search.cpan.org/~eijabb/MARC-Errorchecks-1.11/
Collection of MARC 21/AACR2 error checks
----
Crypt-CBC-2.18
http://search.cpan.org/~lds/Crypt-CBC-2.18/
Encrypt Data with Cipher Block Chaining Mode
----
Business-CCCheck-0.04
http://search.cpan.org/~miker/Business-CCCheck-0.04/
----
POE-Wheel-VimColor-0.01
http://search.cpan.org/~moconnor/POE-Wheel-VimColor-0.01/
----
Business-UTV-0.02
http://search.cpan.org/~psinnott/Business-UTV-0.02/
Module for retrieiving UTV internet account information
----
NetAddr-IP-Lite-0.09
http://search.cpan.org/~miker/NetAddr-IP-Lite-0.09/
Manages IPv4 and IPv6 addresses and subnets
----
DBIx-Class-DigestColumns-0.02000
http://search.cpan.org/~tkp/DBIx-Class-DigestColumns-0.02000/
Automatic digest columns
----
Class-DBI-AutoIncrement-Simple-0.01
http://search.cpan.org/~davidrw/Class-DBI-AutoIncrement-Simple-0.01/
Add autoincrementing to a Class::DBI subclass
----
POE-Component-SNMP-1.04
http://search.cpan.org/~rdb/POE-Component-SNMP-1.04/
POE interface to Net::SNMP
----
Benchmark-Stopwatch-0.01
http://search.cpan.org/~evdb/Benchmark-Stopwatch-0.01/
simple timing of stages of your code.
----
WWW-IndexParser-0.4
http://search.cpan.org/~jeb/WWW-IndexParser-0.4/
Fetch and parse the directory index from a web server
----
Apache2-ClickPath-1.900
http://search.cpan.org/~opi/Apache2-ClickPath-1.900/
Apache WEB Server User Tracking
----
Wiki-Toolkit-0.70
http://search.cpan.org/~dom/Wiki-Toolkit-0.70/
A toolkit for building Wikis.
----
Wiki-Toolkit-Plugin-Locator-Grid-0.05
http://search.cpan.org/~dom/Wiki-Toolkit-Plugin-Locator-Grid-0.05/
A Wiki::Toolkit plugin to manage co-ordinate data.
----
Wiki-Toolkit-Formatter-UseMod-0.20
http://search.cpan.org/~dom/Wiki-Toolkit-Formatter-UseMod-0.20/
UseModWiki-style formatting for Wiki::Toolkit
----
DBIx-Migration-0.05
http://search.cpan.org/~daniel/DBIx-Migration-0.05/
Seamless DB schema up- and downgrades
----
ack-1.17_02
http://search.cpan.org/~petdance/ack-1.17_02/
grep-like text finder for large trees of text
----
Apache2-ClickPath-1.10
http://search.cpan.org/~opi/Apache2-ClickPath-1.10/
Apache WEB Server User Tracking
----
Apache2-SafePnotes-0.03
http://search.cpan.org/~opi/Apache2-SafePnotes-0.03/
a safer replacement for Apache2::RequestUtil::pnotes
----
Text-Tags-0.04
http://search.cpan.org/~glasser/Text-Tags-0.04/
parses "folksonomy" space-separated tags (stub module)
----
Mail-DKIM-0.17
http://search.cpan.org/~jaslong/Mail-DKIM-0.17/
Signs/verifies Internet mail using DKIM message signatures
----
Image-IPTCInfo-1.93
http://search.cpan.org/~jcarter/Image-IPTCInfo-1.93/
Perl extension for extracting IPTC image meta-data
----
Module-CoreList-2.05
http://search.cpan.org/~rgarcia/Module-CoreList-2.05/
what modules shipped with versions of perl
----
Module-Recursive-Require-0.03
http://search.cpan.org/~masap/Module-Recursive-Require-0.03/
This class require module recursively.
----
Graph-Reader-LoadClassHierarchy-0.01
http://search.cpan.org/~flora/Graph-Reader-LoadClassHierarchy-0.01/
load Graphs from class hierarchies
----
NetAddr-IP-Lite-0.08
http://search.cpan.org/~miker/NetAddr-IP-Lite-0.08/
Manages IPv4 and IPv6 addresses and subnets
----
HTML-Widget-Factory-0.04
http://search.cpan.org/~rjbs/HTML-Widget-Factory-0.04/
churn out HTML widgets
----
NetAddr-IP-Lite-0.07
http://search.cpan.org/~miker/NetAddr-IP-Lite-0.07/
Manages IPv4 and IPv6 addresses and subnets
----
Fuse-0.07
http://search.cpan.org/~dpavlin/Fuse-0.07/
write filesystems in Perl using FUSE
----
File-Find-Rule-Filesys-Virtual-1.22
http://search.cpan.org/~rclamp/File-Find-Rule-Filesys-Virtual-1.22/
File::Find::Rule adapted to Filesys::Virtual
----
Class-Entity-0.3
http://search.cpan.org/~pnewman/Class-Entity-0.3/
Object interface for relational databases
----
WWW-Simpy-1.013
http://search.cpan.org/~beadsland/WWW-Simpy-1.013/
Perl interface to Simpy social bookmarking service
----
CGI-FormBuilder-3.0302
http://search.cpan.org/~nwiger/CGI-FormBuilder-3.0302/
Easily generate and process stateful forms
----
WWW-Scraper-ISBN-ISBNdb_Driver-0.02
http://search.cpan.org/~diberri/WWW-Scraper-ISBN-ISBNdb_Driver-0.02/
isbndb.com driver for WWW::Scraper::ISBN
----
DBI-1.51
http://search.cpan.org/~timb/DBI-1.51/
Database independent interface for Perl
----
threads-1.32
http://search.cpan.org/~jdhedden/threads-1.32/
Perl interpreter-based threads
----
WWW-YouTube-2006.0606
http://search.cpan.org/~ermeyers/WWW-YouTube-2006.0606/
YouTube Developer Interface
----
Thesaurus-DBI-0.01
http://search.cpan.org/~joseibert/Thesaurus-DBI-0.01/
Store and query synonyms (Thesaurus) in an SQL database.
----
xmlrpc-pureperl-0.01
http://search.cpan.org/~rdietrich/xmlrpc-pureperl-0.01/
----
Test-WWW-Mechanize-Catalyst-0.37
http://search.cpan.org/~lbrocard/Test-WWW-Mechanize-Catalyst-0.37/
Test::WWW::Mechanize for Catalyst
----
Search-Namazu-0.95
http://search.cpan.org/~knok/Search-Namazu-0.95/
Namazu library module for perl
----
Email-Handle-0.01
http://search.cpan.org/~naoya/Email-Handle-0.01/
A Objective Email Handler
----
Algorithm-Combinatorics-0.20
http://search.cpan.org/~fxn/Algorithm-Combinatorics-0.20/
Efficient generation of combinatorial sequences
----
Net-DNS_ToolKit-0.28
http://search.cpan.org/~miker/Net-DNS_ToolKit-0.28/
----
NetAddr-IP-Lite-0.06
http://search.cpan.org/~miker/NetAddr-IP-Lite-0.06/
Manages IPv4 and IPv6 addresses and subnets
----
Devel-XRay-0.9
http://search.cpan.org/~jbisbee/Devel-XRay-0.9/
See What a Perl Module Is Doing
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Tue, 06 Jun 2006 17:23:11 +0200
From: Pawel <null7@wp.pl>
Subject: newbie - changing value of lexical from outside of module
Message-Id: <r7221f6o.fsf@wp.pl>
I am searching tutorials since 3 hours but no success to my problem.
I have a module with lexical defined:
#mymodule.pm:
my $lex;
sub fun {
print $lex;
}
I have another perl file that uses mymodule.pm
main.pl:
use mymodule;
$lex=34;
fun(); # it does not print 34
My question is - how can I make it ?
Greetings
------------------------------
Date: Tue, 6 Jun 2006 17:06:14 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: regular expression
Message-Id: <e64cmh.mc.1@news.isolution.nl>
Robert Hicks schreef:
> Dr.Ruud:
>> Wait for Perl 6, or use something like
>
> I think he wants something rather soon?! : )
Or something else:
$ perl -wle'
$_ = "abracadabra" ;
$n = 1 ;
print($1 or "#-$n-")
while /(?=(a(?:.*?a){$n}))/g or ++$n and /a(?:.*?a){$n}/
#-1-'
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Tue, 06 Jun 2006 23:13:52 +0200
From: Frank <ppi@searchy.net>
Subject: Sleep & print(f) problem
Message-Id: <4485f011$0$31650$e4fe514c@news.xs4all.nl>
Hi,
I got the following script:
#!/usr/bin/perl
use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep );
use POSIX;
sub lcd_write {
local $fh = shift;
$row1 = $_[1];
$row2 = $_[2];
printf($fh "%1d%1d%-8s\n",0,0,substr($row1,0,8));
printf($fh "%1d%1d%-8s\n",1,0,substr($row2,0,8));
print "write write";
}
open(FILE,"> ./fifo") || die "DOH!! $!";
while() {
lcd_write(\*FILE,"See time",POSIX::strftime("%H:%M:%S",gmtime));
#sleep 1;
}
close(FILE);
this works fine and throws as fast as it can the time to the FIFO. But
when I activate the sleep routine, it never goes into lcd_write. (But it
IS sleeping 1 sec at the time)
I can't figure out why sleep would prevent the prints. (If I put an
other sleep in the subroutine, I can see it doing it's sleep with strace)
Can anyone figure out why the prints aren't working when using a sleep?
Regards,
Frank
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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 V10 Issue 9258
***************************************