[26536] in Perl-Users-Digest
Perl-Users Digest, Issue: 8683 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Nov 18 03:05:36 2005
Date: Fri, 18 Nov 2005 00:05: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 Fri, 18 Nov 2005 Volume: 10 Number: 8683
Today's topics:
Re: /(foo|)/ vs /(foo)?/ <rvtol+news@isolution.nl>
Re: [OT] Google Groups: vote for Default quoting axel@white-eagle.invalid.uk
Re: [OT] Google Groups: vote for Default quoting <tadmc@augustmail.com>
Emacs modules for Perl programming (Jari Aalto+mail.perl)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 18 Nov 2005 03:11:38 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: /(foo|)/ vs /(foo)?/
Message-Id: <dljguh.190.1@news.isolution.nl>
Eric J. Roode:
> "(?(condition)yes-pattern|no-pattern)"
> "(?(condition)yes-pattern)"
>
> Conditional expression. "(condition)" should be either an
> integer in parentheses (which is valid if the corresponding
> pair of parentheses matched), or look-ahead/look-behind/eval-
> uate zero-width assertion.
>
> For example:
>
> m{ ( \( )?
> [^()]+
> (?(1) \) )
> }x
>
> matches a chunk of non-parentheses, possibly included in
> parentheses themselves.
>
> This.... is vague at best. What is "no-pattern"?
The pattern that will be used if the test returned false.
> What means
> "valid"? ("matches", I assume, but perhaps one should not use it if
> there's a chance that the numbered parentheses don't match?)
The (1) is only valid if there exists a corresponding (capturing?)
group.
m{ ( \( )? # optional opening paren
[^()]+ # 1 or more non-parens
(?(1) \) ) # if the 1st group matched, so there was
# an opening paren, then require a
# closing one
}x
I guess that if the "corresponding pair of parens" didn't match+capture,
$1 keeps its old value, because the ? comes after the 1st group.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Fri, 18 Nov 2005 02:08:48 GMT
From: axel@white-eagle.invalid.uk
Subject: Re: [OT] Google Groups: vote for Default quoting
Message-Id: <QIaff.33382$375.5220@fe3.news.blueyonder.co.uk>
Abigail <abigail@abigail.nl> wrote:
> axel@white-eagle.invalid.uk (axel@white-eagle.invalid.uk) wrote on
> )) >>> you shouldn't be posting from work anyway.
> )) >> Ummm, why exactly?
> )) > If you don't understand that, your employer may be able to provide a
> )) > more tangible explanation. ;-)
> )) I always had an ethical problem with that... not being able to contribute
> )) to a news group seemed wrong if I were to use it to ask for advice
> )) which helped me in my work.
> If your employer is ok with you reading news at work, you should have
> no problems in getting a hole through the firewall. Or else you have
> an internal problem at your work - which isn't my problem to solve.
Making a hole through the firewall has never been a problem...
often I was in charge of it. And as I now work from home...
Axel
------------------------------
Date: Thu, 17 Nov 2005 22:33:22 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: [OT] Google Groups: vote for Default quoting
Message-Id: <slrndnqmci.8le.tadmc@magna.augustmail.com>
John Bokma <john@castleamber.com> wrote:
> Charlton Wilbur <cwilbur@chromatico.net> wrote:
>
>>>>>>> "JB" == John Bokma <john@castleamber.com> writes:
>>
>> JB> Which exclude people working for a company that just firewalls
>> JB> some ports,
>> Not my problem, frankly; they can get their work and their servers to
>> behave sensibly, or they can cope with me not reading their posts.
> *sigh* I only want to make clear that some people have very little options
> besides using Google Groups.
I feel pretty sure that that has been clear a bit upthread already.
I agree that some people have very little options besides
using Google Groups.
That does not cause me to not block GG posts though, it is a
trade-off that I am willing to make.
> So I am not telling how you should spend your time
It looks to me like you are.
> I consider it unfair to block them all out
> just because.
You seem to be telling me (us) to spend my (our) time on low S/N posts.
Since _you_ consider it unfair to block, don't block.
You do what you think is best and I do what I think is best,
it is all very democratic. :-)
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 18 Nov 2005 05:37:02 GMT
From: <jari.aalto <AT> poboxes.com> (Jari Aalto+mail.perl)
Subject: Emacs modules for Perl programming
Message-Id: <perl-faq/emacs-lisp-modules_1132292104@rtfm.mit.edu>
Archive-name: perl-faq/emacs-lisp-modules
Posting-Frequency: 2 times a month
URL: http://tiny-tools.sourceforge.net/
Maintainer: Jari Aalto A T poboxes com
Announcement: "What Emacs lisp modules can help with programming Perl"
Preface
Emacs is your friend if you have to do anything comcerning software
development: It offers plug-in modules, written in Emacs lisp
(elisp) language, that makes all your programmings wishes come
true. Please introduce yourself to Emacs and your programming era
will get a new light.
Where to find Emacs/XEmacs
o Unix:
http://www.gnu.org/software/emacs/emacs.html
http://www.xemacs.org/
o Unix Windows port (for Unix die-hards):
install http://www.cygwin.com/ which includes native Emacs 21.x.
and XEmacs port
o Pure Native Windows port
http://www.gnu.org/software/emacs/windows/ntemacs.html
ftp://ftp.xemacs.org/pub/xemacs/windows/setup.exe
o More Emacs resources at
http://tiny-tools.sourceforge.net/ => Emacs resource page
Emacs Perl Modules
Cperl -- Perl programming mode
http://www.cpan.org/modules/by-authors/id/ILYAZ/cperl-mode/
http://math.berkeley.edu/~ilya/software/emacs/
by Ilya Zakharevich
CPerl is major mode for editing perl files. Forget the default
`perl-mode' that comes with Emacs, this is much better. Comes
standard in newest Emacs.
TinyPerl -- Perl related utilities
http://tiny-tools.sourceforge.net/
If you ever wonder how to deal with Perl POD pages or how to find
documentation from all perl manpages, this package is for you.
Couple of keystrokes and all the documentaion is in your hands.
o Instant function help: See documentation of `shift', `pop'...
o Show Perl manual pages in *pod* buffer
o Grep through all Perl manpages (.pod)
o Follow POD references e.g. [perlre] to next pod with RETURN
o Coloured pod pages with `font-lock'
o Separate `tiperl-pod-view-mode' for jumping topics and pages
forward and backward in *pod* buffer.
o Update `$VERSION' variable with YYYY.MMDD on save.
o Load source code into Emacs, like Devel::DProf.pm
o Prepare script (version numbering) and Upload it to PAUSE
o Generate autoload STUBS (Devel::SelfStubber) for you
Perl Module (.pm)
TinyIgrep -- Perl Code browsing and easy grepping
[TinyIgrep is included in Tiny Tools Kit]
To grep from all installed Perl modules, define database to
TinyIgrep. There is example file emacs-rc-tinyigrep.el that shows
how to set up dattabases for Perl5, Perl4 whatever you have
installed
TinyIgrep calls Igrep.el to to do the search, You can adjust
recursive grep options, set search case sensitivity, add user grep
options etc.
You can find latest `igrep.el' module at
<http://groups.google.com/groups?group=gnu.emacs.sources> The
maintainer is Jefin Rodgers <kevinr <AT> ihs.com>.
TinyCompile -- To Browse grep results in Emacs *compile* buffer
TinyCompile is a minor mode for *compile* buffer from where
you can collapse unwanted lines or shorten file URLs:
/asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file1:NNN: MATCHED TEXT
/asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file2:NNN: MATCHED TEXT
-->
cd /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/
file1:NNN: MATCHED TEXT
file1:NNN: MATCHED TEXT
End
------------------------------
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 8683
***************************************