[30072] in Perl-Users-Digest
Perl-Users Digest, Issue: 1315 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Feb 28 06:09:39 2008
Date: Thu, 28 Feb 2008 03:09:06 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 28 Feb 2008 Volume: 11 Number: 1315
Today's topics:
Re: a very simplistic example of a perl module <uri@stemsystems.com>
code help <jameslockie@mail.com>
Re: code help <jurgenex@hotmail.com>
Re: code help <someone@example.com>
Re: code help <jameslockie@mail.com>
Converting "’" to an Apostrophe? <maria@maria_de_napoli.com>
Re: Converting "’" to an Apostrophe? <jwkenne@attglobal.net>
Re: Converting "’" to an Apostrophe? <maria@maria_de_napoli.com>
Re: Converting "’" to an Apostrophe? <RedGrittyBrick@SpamWeary.foo>
Re: Converting "’" to an Apostrophe? <RedGrittyBrick@SpamWeary.foo>
Luxury Newly Added Zenith Watches df93f9ef@21cn.com
Magic $a $b <achimpeters@gmx.de>
Re: Magic $a $b <peter@makholm.net>
new CPAN modules on Thu Feb 28 2008 (Randal Schwartz)
Re: RegEx - matching previous match <jellings@gmail.com>
Re: RegEx - matching previous match <jellings@gmail.com>
Re: RegEx - matching previous match dummy@phony.info
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 28 Feb 2008 02:29:05 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: a very simplistic example of a perl module
Message-Id: <x71w6x4xvy.fsf@mail.sysarch.com>
>>>>> "TJM" == Tad J McClellan <tadmc@seesig.invalid> writes:
TJM> [ If you don't want to continue to look silly, then do not top-post.
TJM> Text rearranged into actual chronological order.
TJM> ]
TJM> BH <Benson.Hoi@googlemail.com> wrote:
>> On Feb 26, 7:51 pm, xhos...@gmail.com wrote:
>>> Who will receive credit for your homework, me or you?
>>>
>> Interesting! It's interesting someone actually thinks that any typical
>> school/university will teach Perl as a subject? ;)
TJM> I don't "think" it is taught, I "know" it is.
TJM> I have taught a for-credit Perl class at a typical university.
and there are certificate programs in perl at many colleges
too. extensions schools (even harvard) teach perl. it isn't used much as
the primary language for all compsci classes but it is taught in places.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Architecture, Development, Training, Support, Code Review ------
----------- Search or Offer Perl Jobs ----- http://jobs.perl.org ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
------------------------------
Date: Wed, 27 Feb 2008 18:54:49 -0800 (PST)
From: jammer <jameslockie@mail.com>
Subject: code help
Message-Id: <d5f24770-fb70-4c96-b5fe-27c06a24f2e9@z17g2000hsg.googlegroups.com>
Why does this give a syntax error?
# not 2 arguments, print usage
if ($#ARGV != 1) {
print "\nusage: " . $ARGV[0] . "\[backupDir\] \
[backupConfigFile\]\n";
}
------------------------------
Date: Thu, 28 Feb 2008 03:10:28 GMT
From: Jόrgen Exner <jurgenex@hotmail.com>
Subject: Re: code help
Message-Id: <rb9cs391v63lemq3nh1v9msji6th2jg77c@4ax.com>
jammer <jameslockie@mail.com> wrote:
>Why does this give a syntax error?
>
>
># not 2 arguments, print usage
>if ($#ARGV != 1) {
> print "\nusage: " . $ARGV[0] . "\[backupDir\] \
>[backupConfigFile\]\n";
>}
It doesn't for me:
C:\tmp>type t.pl
# not 2 arguments, print usage
if ($#ARGV != 1) {
print "\nusage: " . $ARGV[0] . "\[backupDir\] \
[backupConfigFile\]\n";
}
C:\tmp>perl -c t.pl
t.pl syntax OK
jue
------------------------------
Date: Thu, 28 Feb 2008 03:31:57 GMT
From: "John W. Krahn" <someone@example.com>
Subject: Re: code help
Message-Id: <NWpxj.45240$w57.22780@edtnps90>
jammer wrote:
> Why does this give a syntax error?
There is no syntax error there.
> # not 2 arguments, print usage
> if ($#ARGV != 1) {
That's a great way to confuse a newby. Why does the comment say "2
arguments" but you are comparing the variable to 1? Try it like this:
# not 2 arguments, print usage
if ( @ARGV != 2 ) {
> print "\nusage: " . $ARGV[0] . "\[backupDir\] \
Unlike C, Python, etc. the first argument of @ARGV is *not* the program
name, you want the $0 variable instead.
> [backupConfigFile\]\n";
> }
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Wed, 27 Feb 2008 20:11:43 -0800 (PST)
From: jammer <jameslockie@mail.com>
Subject: Re: code help
Message-Id: <e410d1dd-4886-4a94-8ed6-433cc238910d@2g2000hsn.googlegroups.com>
On Feb 27, 10:31=A0pm, "John W. Krahn" <some...@example.com> wrote:
> jammer wrote:
> > Why does this give a syntax error?
>
> There is no syntax error there.
>
> > # not 2 arguments, print usage
> > if ($#ARGV !=3D 1) {
>
> That's a great way to confuse a newby. =A0Why does the comment say "2
> arguments" but you are comparing the variable to 1? =A0Try it like this:
>
> # not 2 arguments, print usage
> if ( @ARGV !=3D 2 ) {
>
> > =A0 =A0 =A0 =A0 print "\nusage: " . $ARGV[0] . "\[backupDir\] \
>
> Unlike C, Python, etc. the first argument of @ARGV is *not* the program
> name, you want the $0 variable instead.
I had a missing semi-colon and the error pointed to that block. :-(
------------------------------
Date: Wed, 27 Feb 2008 21:21:17 -0500
From: maria <maria@maria_de_napoli.com>
Subject: Converting "’" to an Apostrophe?
Message-Id: <356cs3dfcopgg72548s0isltmrutk6c2ho@4ax.com>
I am using a CGI program to read XML files and extract their various
items. Somehow, my program converts the apostrophe "’" to ...
"\β\\". How do I program my CGI program to convert "’" to
an apostrophe, "'"? Is there a little CGI code that will convert
all these different strings (including dagger, ellipsis,
euro symbol, double quote, etc.) to their ASCII equivalents?
Thank you very much.
maria
------------------------------
Date: Wed, 27 Feb 2008 22:45:02 -0500
From: "John W. Kennedy" <jwkenne@attglobal.net>
Subject: Re: Converting "’" to an Apostrophe?
Message-Id: <47c62e48$0$29425$607ed4bc@cv.net>
maria wrote:
> I am using a CGI program to read XML files and extract their various
> items. Somehow, my program converts the apostrophe "’" to ...
> "\β\\". How do I program my CGI program to convert "’" to
> an apostrophe, "'"? Is there a little CGI code that will convert
> all these different strings (including dagger, ellipsis,
> euro symbol, double quote, etc.) to their ASCII equivalents?
> Thank you very much.
>
> maria
You have a serious misunderstanding that is much too complicated to
explain here. Learn about Unicode.
--
John W. Kennedy
"The whole modern world has divided itself into Conservatives and
Progressives. The business of Progressives is to go on making mistakes.
The business of the Conservatives is to prevent the mistakes from being
corrected."
-- G. K. Chesterton
------------------------------
Date: Wed, 27 Feb 2008 23:03:23 -0500
From: maria <maria@maria_de_napoli.com>
Subject: Re: Converting "’" to an Apostrophe?
Message-Id: <9gccs39upfnddkf2fkfdci97pk5ct44t24@4ax.com>
On Wed, 27 Feb 2008 22:45:02 -0500, "John W. Kennedy"
<jwkenne@attglobal.net> wrote:
>maria wrote:
>> I am using a CGI program to read XML files and extract their various
>> items. Somehow, my program converts the apostrophe "’" to ...
>> "\β\\". How do I program my CGI program to convert "’" to
>> an apostrophe, "'"? Is there a little CGI code that will convert
>> all these different strings (including dagger, ellipsis,
>> euro symbol, double quote, etc.) to their ASCII equivalents?
>> Thank you very much.
>>
>> maria
>
>You have a serious misunderstanding that is much too complicated to
>explain here. Learn about Unicode.
The whole modern world is filled with people who feel compelled to
respond to other people's messages when they have absolutely nothing
to say.
maria
------------------------------
Date: Thu, 28 Feb 2008 09:47:37 +0000
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Re: Converting "’" to an Apostrophe?
Message-Id: <47c6833c$0$21104$da0feed9@news.zen.co.uk>
maria wrote:
> On Wed, 27 Feb 2008 22:45:02 -0500, "John W. Kennedy"
> <jwkenne@attglobal.net> wrote:
>
>> maria wrote:
>>> I am using a CGI program to read XML files and extract their various
>>> items. Somehow, my program converts the apostrophe "’" to ...
>>> "\β\\". How do I program my CGI program to convert "’" to
>>> an apostrophe, "'"? Is there a little CGI code that will convert
>>> all these different strings (including dagger, ellipsis,
>>> euro symbol, double quote, etc.) to their ASCII equivalents?
>>> Thank you very much.
>>>
>>> maria
>> You have a serious misunderstanding that is much too complicated to
>> explain here. Learn about Unicode.
>
> The whole modern world is filled with people who feel compelled to
> respond to other people's messages when they have absolutely nothing
> to say.
>
Oh dear. Replying to percieved rudeness with more rudeness just puts off
potential helpers.
John's reply *did* contain something useful to you.
AIUI John is pointing out that "\β\\" is your Unicode apostrophe
encoded in UTF-8 but displayed using an incorrect encoding such as Latin-1.
Unicode code-point u2019 is represented in UTF8 as the byte sequence e2
80 99 (shown here in hexadecimal), that same byte sequence, when
interpreted as Latin-1 is the three characters β (a acute, euro,
trademark).
You can learn more about Perl's handling of unicode by typing the
command `perldoc perlunicode`
It's a while since I've read the posting guidelines for this newsgroup
but I'm pretty sure they suggest you include a short example program
that demonstrates your problem. That would make it easier for people to
help you identify what you are doing wrong.
------------------------------
Date: Thu, 28 Feb 2008 10:48:43 +0000
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Re: Converting "’" to an Apostrophe?
Message-Id: <47c6918f$0$21087$da0feed9@news.zen.co.uk>
RedGrittyBrick wrote:
> maria wrote:
>> On Wed, 27 Feb 2008 22:45:02 -0500, "John W. Kennedy"
>> <jwkenne@attglobal.net> wrote:
>>
>>> maria wrote:
>>>> I am using a CGI program to read XML files and extract their various
>>>> items. Somehow, my program converts the apostrophe "’" to ...
>>>> "\β\\". How do I program my CGI program to convert "’" to
>>>> an apostrophe, "'"? Is there a little CGI code that will convert
>>>> all these different strings (including dagger, ellipsis, euro
>>>> symbol, double quote, etc.) to their ASCII equivalents?
>>>> Thank you very much.
>>>>
>>>> maria
>>> You have a serious misunderstanding that is much too complicated to
>>> explain here. Learn about Unicode.
>>
>> The whole modern world is filled with people who feel compelled to
>> respond to other people's messages when they have absolutely nothing
>> to say.
>>
>
> Oh dear. Replying to percieved rudeness with more rudeness just puts off
> potential helpers.
>
> John's reply *did* contain something useful to you.
>
> AIUI John is pointing out that "\β\\" is your Unicode apostrophe
> encoded in UTF-8 but displayed using an incorrect encoding such as Latin-1.
>
> Unicode code-point u2019 is represented in UTF8 as the byte sequence e2
> 80 99 (shown here in hexadecimal), that same byte sequence, when
> interpreted as Latin-1 is the three characters β (a acute, euro,
> trademark).
>
> You can learn more about Perl's handling of unicode by typing the
> command `perldoc perlunicode`
>
>
> It's a while since I've read the posting guidelines for this newsgroup
> but I'm pretty sure they suggest you include a short example program
> that demonstrates your problem. That would make it easier for people to
> help you identify what you are doing wrong.
#!perl
#
# Demonstrate handling of Unicode characters in a UTF8 encoded file
#
# RGB 2008-02-28
#
use strict;
use warnings;
use CGI qw/:standard/;
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
#
# First we write some Unicode to a file using UTF-8 encoding.
#
my $tempfile = "unicode.txt";
open (my $out, '>:utf8', $tempfile)
or die "can't open $tempfile because $!\n";
print $out "Here is a Unicode RIGHT SINGLE QUOTE MARK ->\x{2019}<-\n";
close $out;
#
# Now we read our UTF-8 encoded text file and use it in a web-page.
#
open (my $in, '<:utf8', $tempfile)
or die "can't open $tempfile because $!\n";
my $line = <$in>;
close $in;
print header(-charset=>'utf-8'), # NOTE - Default is NOT utf-8
start_html(), h1("Unicode example"), p($line), hr(), end_html();
------------------------------
Date: Wed, 27 Feb 2008 23:49:32 -0800 (PST)
From: df93f9ef@21cn.com
Subject: Luxury Newly Added Zenith Watches
Message-Id: <dd7e3bdb-b7ca-41f7-9b05-d63a5c0d895b@h25g2000hsf.googlegroups.com>
Best Zenith Replica Watches | Fake Watch
http://www.replica-watch-shopping.com Since 2000 We are do online
replcia watches busienss from now on and we have many cusotmers from
USA, Europe and other country from India. buying replica watches will
save your lots of money and get same as 100% original watches from our
high quality and lowest price replica watch online shop.
Best Zenith Replica Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/zenith_replica_watches_1.html
Luxury Zenith Fake Watch :
http://www.replica-watch-shopping.com/zenith_replica_watches/zenith_replica_watches_1.html
Replica Watches, Zenith has been made in Switzerland for 150 years.
Zenith has the El Primero which is their first chronograph, automated
watch.
Zenith watches have a sapphire crystal front. And offer straps of
colored crocodile leather, with silver Arabic numerals and hands, or
stainless steel links in either silver or gold with Roman numerals and
hands that match.
Luxury Zenith Grand Class Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Grand_Class_watch_1.html
Luxury Zenith ChronoMaster Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_ChronoMaster_watch_1.html
Luxury Zenith Port Royal Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Port_Royal_watch_1.html
Luxury Zenith Defy Classic Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Defy_Classic_watch_1.html
Luxury Zenith Class Open Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Class_Open_watch_1.html
Luxury Zenith Defy Xtreme Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Defy_Xtreme_watch_1.html
Luxury Newly Added Zenith Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Newly_Added_Zenith_watch_1.html
Luxury Zenith Baby Star Watches :
http://www.replica-watch-shopping.com/zenith_replica_watches/Zenith_Baby_Star_watch_1.html
------------------------------
Date: Thu, 28 Feb 2008 11:59:45 +0100
From: Achim Peters <achimpeters@gmx.de>
Subject: Magic $a $b
Message-Id: <47C69421.2060905@gmx.de>
Hi,
I'm a noob to perl and a frequent reader of this group. Whenever anyone
in here uses $a and/or $b in a non-sort context s/he gets a "Don't!
They're magic." as a response. Now, I believe in magic and the wisdom of
regulars and that's why I mentioned this general rule in
de.comp.lang.perl.misc.
But there happened to be a non-believer and he dared me with "Oh,
really? Perl this:"
use strict;
use warnings;
$a = 4711;
my @arr = qw /x a u q r/;
@arr = sort { $a cmp $b } @arr;
print "$a\n";
which in fact does print the 4711 (a German "magic" number) with Perl
5.8.2, thus no side effects of the sorting (except of course that the
missing "my" in front of $a does not cause an compile error.
Is there any example to prove his impertinence of questioning the gurus'
wisdom?
TIA
Bye
Achim
------------------------------
Date: Thu, 28 Feb 2008 11:04:31 +0000
From: Peter Makholm <peter@makholm.net>
Subject: Re: Magic $a $b
Message-Id: <87y7954a0w.fsf@hacking.dk>
Achim Peters <achimpeters@gmx.de> writes:
> But there happened to be a non-believer and he dared me with "Oh,
> really? Perl this:"
>
> use strict;
> use warnings;
>
> $a = 4711;
See mom, no warning! - That's magic.
Using $a and $b defies parts of of using strict.
//Makholm
------------------------------
Date: Thu, 28 Feb 2008 05:42:19 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Feb 28 2008
Message-Id: <Jwxp6J.1rBF@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.
Acme-Globule-0.001
http://search.cpan.org/~mooli/Acme-Globule-0.001/
Extensible package-local way to override glob()
----
Acme-Range-0.003
http://search.cpan.org/~mooli/Acme-Range-0.003/
Alternative to the range operator
----
Acme-Range-0.004
http://search.cpan.org/~mooli/Acme-Range-0.004/
Alternative to the range operator
----
Apache2-ASP-1.35
http://search.cpan.org/~johnd/Apache2-ASP-1.35/
Perl extension for ASP on mod_perl2.
----
App-Booklist-v0.2
http://search.cpan.org/~genehack/App-Booklist-v0.2/
Track books you want to read, are reading, and have read
----
App-Context-0.9661
http://search.cpan.org/~spadkins/App-Context-0.9661/
An application framework for web applications, command-line programs, server programs, and web services
----
Bio-Das-1.07
http://search.cpan.org/~lds/Bio-Das-1.07/
Interface to Distributed Annotation System
----
Bundle-NICAT-0.04
http://search.cpan.org/~marcel/Bundle-NICAT-0.04/
Prerequisites for the Austrian Domain Registry projects
----
Bundle-NICAT-0.05
http://search.cpan.org/~marcel/Bundle-NICAT-0.05/
Prerequisites for the Austrian Domain Registry projects
----
Bundle-Thread-1.07
http://search.cpan.org/~jdhedden/Bundle-Thread-1.07/
A bundle of modules for supporting threads in Perl
----
Bundle-Thread-1.08
http://search.cpan.org/~jdhedden/Bundle-Thread-1.08/
A bundle of modules for supporting threads in Perl
----
Business-OnlinePayment-TransactionCentral-0.06
http://search.cpan.org/~ivan/Business-OnlinePayment-TransactionCentral-0.06/
Transaction Central backend module for Business::OnlinePayment
----
CGI-JSONRPC-0.11
http://search.cpan.org/~crakrjack/CGI-JSONRPC-0.11/
CGI handler for JSONRPC
----
CGI-QuickApp-0.27
http://search.cpan.org/~lze/CGI-QuickApp-0.27/
----
CGI-QuickApp-Blog-0.27
http://search.cpan.org/~lze/CGI-QuickApp-Blog-0.27/
----
CPAN-1.92_57
http://search.cpan.org/~andk/CPAN-1.92_57/
query, download and build perl modules from CPAN sites
----
CPAN-Mini-Devel-0.01
http://search.cpan.org/~dagolden/CPAN-Mini-Devel-0.01/
Create CPAN::Mini mirror with developer releases
----
CPAN-Reporter-Smoker-0.05
http://search.cpan.org/~dagolden/CPAN-Reporter-Smoker-0.05/
Turnkey CPAN Testers smoking
----
Catalyst-Controller-Atompub-0.3.6
http://search.cpan.org/~takeru/Catalyst-Controller-Atompub-0.3.6/
A Catalyst controller for the Atom Publishing Protocol
----
Catalyst-Helper-View-TT-Bootstrap-0.01
http://search.cpan.org/~drprolix/Catalyst-Helper-View-TT-Bootstrap-0.01/
Helper for TT view. Creates the View/TT.pm and a template directory structure under MyApp/root containing templates, macros, and a base stylesheet to facilitate getting to the meat of building your ap
----
CatalystX-ListFramework-0.4
http://search.cpan.org/~snafufans/CatalystX-ListFramework-0.4/
foundations for displaying and editing lists (CRUD) in a Catalyst application
----
CatalystX-ListFramework-0.5
http://search.cpan.org/~snafufans/CatalystX-ListFramework-0.5/
foundations for displaying and editing lists (CRUD) in a Catalyst application
----
Class-Scaffold-0.04
http://search.cpan.org/~marcel/Class-Scaffold-0.04/
large-scale OOP application support
----
ClearPress-99
http://search.cpan.org/~rpettett/ClearPress-99/
Simple, fresh & fruity MVC framework
----
Config-Model-Xorg-0.510
http://search.cpan.org/~ddumont/Config-Model-Xorg-0.510/
Xorg configuration model for Config::Model
----
DBD-Pg-2.2.0
http://search.cpan.org/~turnstep/DBD-Pg-2.2.0/
PostgreSQL database driver for the DBI module
----
DBI-Library-0.27
http://search.cpan.org/~lze/DBI-Library-0.27/
----
DBIx-Perlish-0.38
http://search.cpan.org/~gruber/DBIx-Perlish-0.38/
a perlish interface to SQL databases
----
Data-CloudWeights-0.1.29
http://search.cpan.org/~pjfl/Data-CloudWeights-0.1.29/
Calculate values for an HTML tag cloud
----
Data-NDS-1.00
http://search.cpan.org/~sbeck/Data-NDS-1.00/
routines to work with a perl nested data structure
----
DateTime-Format-Oracle-0.04
http://search.cpan.org/~kolibrie/DateTime-Format-Oracle-0.04/
Parse and format Oracle dates and timestamps
----
EekBoek-1.03.10
http://search.cpan.org/~jv/EekBoek-1.03.10/
Bookkeeping software for small and medium-size businesses
----
Egg-Model-FsaveDate-0.01
http://search.cpan.org/~lushe/Egg-Model-FsaveDate-0.01/
Model to preserve arbitrary text data according to date.
----
Exporter-NoWork-0.02
http://search.cpan.org/~bmorrow/Exporter-NoWork-0.02/
an easier way to export functions
----
ExtUtils-Install-1.45
http://search.cpan.org/~yves/ExtUtils-Install-1.45/
install files from here to there
----
File-Fu-v0.0.2
http://search.cpan.org/~ewilhelm/File-Fu-v0.0.2/
file and directory objects
----
File-SAUCE-0.23
http://search.cpan.org/~bricas/File-SAUCE-0.23/
A library to manipulate SAUCE metadata
----
Form-Processor-0.17
http://search.cpan.org/~hank/Form-Processor-0.17/
validate and process form data
----
Form-Processor-Model-CDBI-0.08
http://search.cpan.org/~hank/Form-Processor-Model-CDBI-0.08/
model class for Form::Processor based on Class::DBI
----
GD-Map-Mercator-1.03
http://search.cpan.org/~darnold/GD-Map-Mercator-1.03/
Create Mercator projected map images using GD
----
GD-SecurityImage-1.65
http://search.cpan.org/~burak/GD-SecurityImage-1.65/
Security image (captcha) generator.
----
Google-Data-JSON-0.1.5
http://search.cpan.org/~takeru/Google-Data-JSON-0.1.5/
General XML-JSON converter based on Google Data APIs
----
Gtk2-ImageView-0.02
http://search.cpan.org/~ratcliffe/Gtk2-ImageView-0.02/
----
Gtk2-WebKit-0.01
http://search.cpan.org/~flora/Gtk2-WebKit-0.01/
Web content engine library for Gtk2
----
HTML-CTPP2-2.0.4
http://search.cpan.org/~stellar/HTML-CTPP2-2.0.4/
Perl interface for CTPP2 library
----
HTML-Editor-0.27
http://search.cpan.org/~lze/HTML-Editor-0.27/
----
HTML-Menu-Pages-0.27
http://search.cpan.org/~lze/HTML-Menu-Pages-0.27/
----
HTML-Normalize-1.0000
http://search.cpan.org/~grandpa/HTML-Normalize-1.0000/
HTML light weight cleanup
----
HTML-TabWidget-0.27
http://search.cpan.org/~lze/HTML-TabWidget-0.27/
----
HTML-Template-Default-1.06
http://search.cpan.org/~leocharre/HTML-Template-Default-1.06/
unless template file is on disk, use default hard coded
----
HTML-Template-Default-1.07
http://search.cpan.org/~leocharre/HTML-Template-Default-1.07/
unless template file is on disk, use default hard coded
----
HTML-Widget-Factory-0.064
http://search.cpan.org/~rjbs/HTML-Widget-Factory-0.064/
churn out HTML widgets
----
HTML-Window-0.27
http://search.cpan.org/~lze/HTML-Window-0.27/
html window
----
HTTP-Body-1.02
http://search.cpan.org/~agrundma/HTTP-Body-1.02/
HTTP Body Parser
----
Language-MuldisD-0.22.0
http://search.cpan.org/~duncand/Language-MuldisD-0.22.0/
Formal spec of Muldis D relational DBMS lang
----
Lingua-EN-NameCase-1.15
http://search.cpan.org/~summer/Lingua-EN-NameCase-1.15/
Perl module to fix the case of people's names.
----
Lingua-ZH-ZhuYin-0.02
http://search.cpan.org/~clsung/Lingua-ZH-ZhuYin-0.02/
The great new Lingua::ZH::ZhuYin!
----
MooseX-Notification-0.0.2
http://search.cpan.org/~rlb/MooseX-Notification-0.0.2/
An observer/notification for Moose
----
NET-IPFilter_V1.1.1
http://search.cpan.org/~senger/NET-IPFilter_V1.1.1/
Perl extension for Accessing eMule / Bittorrent IPFilter.dat Files and checking a given IP against this ipfilter.dat IP Range. IT uses conversion from IP to long integers in Perl and afterwards compai
----
Net-DNS-ToolKit-0.36
http://search.cpan.org/~miker/Net-DNS-ToolKit-0.36/
tools for working with DNS packets
----
Net-Flickr-Backup-2.991
http://search.cpan.org/~ascope/Net-Flickr-Backup-2.991/
OOP for backing up your Flickr photos locally
----
Net-Geohash-1.0
http://search.cpan.org/~sock/Net-Geohash-1.0/
The great new Net::Geohash!
----
Net-SIP-0.44
http://search.cpan.org/~sullr/Net-SIP-0.44/
Framework SIP (Voice Over IP, RFC3261)
----
Net-SIP-0.44_1
http://search.cpan.org/~sullr/Net-SIP-0.44_1/
Framework SIP (Voice Over IP, RFC3261)
----
Notification-Center-0.0.3
http://search.cpan.org/~rlb/Notification-Center-0.0.3/
An observer/notification for Moose
----
Number-Phone-1.581
http://search.cpan.org/~dcantrell/Number-Phone-1.581/
base class for Number::Phone::* modules
----
POEIKC-0.01
http://search.cpan.org/~suzuki/POEIKC-0.01/
POE IKC daemon and client
----
Paranoid-0.15
http://search.cpan.org/~corliss/Paranoid-0.15/
Paranoia support for safer programs
----
Paranoid-0.16
http://search.cpan.org/~corliss/Paranoid-0.16/
Paranoia support for safer programs
----
Parse-IRC-1.08
http://search.cpan.org/~bingos/Parse-IRC-1.08/
A parser for the IRC protocol.
----
Parse-PlainConfig-2.04
http://search.cpan.org/~corliss/Parse-PlainConfig-2.04/
Parser for plain-text configuration files
----
Syndication-ESF-0.12
http://search.cpan.org/~bricas/Syndication-ESF-0.12/
Create and update ESF files
----
Sys-Statistics-Linux-0.30
http://search.cpan.org/~bloonix/Sys-Statistics-Linux-0.30/
Front-end module to collect system statistics
----
Sys-Statistics-Linux-0.32
http://search.cpan.org/~bloonix/Sys-Statistics-Linux-0.32/
Front-end module to collect system statistics
----
Template-Quick-0.27
http://search.cpan.org/~lze/Template-Quick-0.27/
----
Term-Size-ReadKey-0.02
http://search.cpan.org/~ferreira/Term-Size-ReadKey-0.02/
Retrieving terminal size (via Term::ReadKey)
----
Term-Size-Unix-0.205
http://search.cpan.org/~ferreira/Term-Size-Unix-0.205/
Retrieve terminal size (Unix version)
----
Test-Parser-1.6.1
http://search.cpan.org/~markwkm/Test-Parser-1.6.1/
Base class for parsing log files from test runs, and displays in an XML syntax.
----
Test-Parser-1.7
http://search.cpan.org/~markwkm/Test-Parser-1.7/
Base class for parsing log files from test runs, and displays in an XML syntax.
----
Test-Presenter-0.4
http://search.cpan.org/~markwkm/Test-Presenter-0.4/
A module for results Presentation.
----
Test-Simple-0.77
http://search.cpan.org/~mschwern/Test-Simple-0.77/
Basic utilities for writing tests.
----
Test-Simple-0.78
http://search.cpan.org/~mschwern/Test-Simple-0.78/
Basic utilities for writing tests.
----
Test-Simple-0.79_01
http://search.cpan.org/~mschwern/Test-Simple-0.79_01/
Basic utilities for writing tests.
----
Text-Normalize-NACO-0.12
http://search.cpan.org/~bricas/Text-Normalize-NACO-0.12/
Normalize text based on the NACO rules
----
Text-TinySegmenter-0.01
http://search.cpan.org/~jiro/Text-TinySegmenter-0.01/
Super compact Japanese tokenizer
----
Thread-Suspend-1.15
http://search.cpan.org/~jdhedden/Thread-Suspend-1.15/
Suspend and resume operations for threads
----
Thread-Suspend-1.16
http://search.cpan.org/~jdhedden/Thread-Suspend-1.16/
Suspend and resume operations for threads
----
WWW-Curl-3.12
http://search.cpan.org/~crisb/WWW-Curl-3.12/
Perl extension interface for libcurl
----
WebService-ReviewBoard-0.0.1
http://search.cpan.org/~jaybuff/WebService-ReviewBoard-0.0.1/
Perl library to talk to a review board installation thru web services.
----
Wx-Perl-Packager-0.14
http://search.cpan.org/~mdootson/Wx-Perl-Packager-0.14/
----
oob-0.01
http://search.cpan.org/~elizabeth/oob-0.01/
out of bounds data for any data structure in Perl
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.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
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: Wed, 27 Feb 2008 18:09:38 -0800 (PST)
From: j ellings <jellings@gmail.com>
Subject: Re: RegEx - matching previous match
Message-Id: <028f9a16-a167-4cc4-a4c8-338f1004c79d@x41g2000hsb.googlegroups.com>
On Feb 27, 8:21 pm, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote:
>
> A zero-width positive look-ahead assertion may be what you are after;
> see "perldoc perlre".
>
> while ($html =~ m{<i><b>(.*?)(?=<i><b>)}gs) {
> ---------------------------------^^^------^
>
> Another approach that doesn't slurp the whole file into a scalar variable:
>
> local $/ = '<i><b>';
> while ( my $html = <> ) {
> #do something
> }
>
> --
> Gunnar Hjalmarsson
Thanks Gunnar, this worked perfectly; apologies for the formatting.
------------------------------
Date: Wed, 27 Feb 2008 18:22:48 -0800 (PST)
From: j ellings <jellings@gmail.com>
Subject: Re: RegEx - matching previous match
Message-Id: <7220190d-3826-4175-a478-9248cb36be53@f47g2000hsd.googlegroups.com>
On Feb 27, 8:21 pm, Tad J McClellan <ta...@seesig.invalid> wrote:
>
> You do not need a way to include the previous <i><b> in the next match.
>
> > Any suggestions or advice would be most appreciated.
>
> while ($html =~ m{<i><b>(.*?)</b></i>}gs) {
>
> --
> Tad McClellan
> email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
Tad
Thanks for the suggestion. Your regex will match the first instance
of opening and closing of the <b><i> tags; what I needed it to do was
to match the opening of the two tags. My original regex did capture
between two opening instances, but only after skipping one.
------------------------------
Date: Thu, 28 Feb 2008 02:03:36 -0800
From: dummy@phony.info
Subject: Re: RegEx - matching previous match
Message-Id: <hj1ds3dhbr1t6eeqmsne26qvtnv671gvdq@4ax.com>
On Wed, 27 Feb 2008 14:12:56 -0800 (PST), j ellings
<jellings@gmail.com> wrote:
>Hello.
>
>I have an html file converted from PDF that includes the following
>sample lines:
>
[snip]
>
>I am trying to capture the information between the <i><b>
>tags as these are the only unique delimiters between entries.
>
>My regex is as follows:
>
>while ($html =~ m{<i><b>(.*?)<i><b>}gs) {
>#do something
>}
>
>Unfortunately, the regex will match the first instance( Z & A
>Newsstand), but ignore the second (Newstand) and then match on the
>third (Pudgies Deli).
>
>I can see that the match is working according to what I wrote; I am
>trying to fine tune it so that I can grab every match. Is there a way
>to include the previous <i><b> in the next match such that
>it will not skip a potential match?
>
>Any suggestions or advice would be most appreciated.
>
>John
while ($html =~ m{<i><b>(.+)</b></i>}g){print "$1\n"}
works for me
------------------------------
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 V11 Issue 1315
***************************************