[28502] in Perl-Users-Digest
Perl-Users Digest, Issue: 9866 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 19 09:05:58 2006
Date: Thu, 19 Oct 2006 06:05:07 -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 Thu, 19 Oct 2006 Volume: 10 Number: 9866
Today's topics:
Re: FTP to a windows file share? <jurgenex@hotmail.com>
Re: How to print "0A" LF or "03" ETX characters to a fi <josef.moellers@fujitsu-siemens.com>
Re: I have no problems eating cereal...after it softens <scobloke2@infotop.co.uk>
Re: Matching umlauts <jurgenex@hotmail.com>
Re: Matching umlauts <josef.moellers@fujitsu-siemens.com>
Re: Matching umlauts anno4000@radom.zrz.tu-berlin.de
Re: modify posting guidelines to allow MIME charset=utf <scobloke2@infotop.co.uk>
new CPAN modules on Thu Oct 19 2006 (Randal Schwartz)
Re: Returning to beginning of current line with print() <aukjan@vanbelkum.no.spam.nl>
Re: two array parameter <jialinli1981@gmail.com>
Re: two array parameter <bik.mido@tiscalinet.it>
Re: two array parameter <bik.mido@tiscalinet.it>
Re: unable to calculate large file size <bik.mido@tiscalinet.it>
Re: using 'if' to optionally use a module <bol@adv.magwien.gv.at>
Re: using 'if' to optionally use a module <bol@adv.magwien.gv.at>
Re: using 'if' to optionally use a module <uri@stemsystems.com>
Re: using 'if' to optionally use a module <nospam-abuse@ilyaz.org>
Re: using 'if' to optionally use a module usenet@DavidFilmer.com
Re: using 'if' to optionally use a module <mritty@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 19 Oct 2006 04:33:24 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: FTP to a windows file share?
Message-Id: <oeDZg.3935$5h6.3877@trndny04>
John W. Krahn wrote:
> Ian Wilson wrote:
>> Brian Wilkins wrote:
>>> MattJ83 wrote:
>>>> The trouble is i don't think the file share format
>>>> '\\ukbr1234\share' is accepted by the perl script.....
>>>
>>> open(FILE, "\\ukbr1234\share\test");
>>
>> In that double-quoted string constant, \s means any whitespace
>> character doesn't it?
>
> No, \s only has meaning in a regular expression, in a double quoted
> string \s evaluates to s.
But the \t is nevertheless stringified into a TAB character. I doubt that's
what the OP wanted.
Using forward slashes does save a lot of hassle.
jue
------------------------------
Date: Thu, 19 Oct 2006 09:08:14 +0200
From: Josef Moellers <josef.moellers@fujitsu-siemens.com>
Subject: Re: How to print "0A" LF or "03" ETX characters to a filehandle
Message-Id: <eh78cf$cqi$1@nntp.fujitsu-siemens.com>
Joe Smith wrote:
> jeffpierce12@hotmail.com wrote:
>=20
>> open (ABC, "+< /dev/ttyS0") or die "Can't open serial port: $!";
>> binmode ABC;
>> print (ABC "2");
>> ......
>=20
>=20
> Are you aware that
> print ABC chr(0x03),chr(0x0A);
> and
> print ABC "\x03\x0A";
> both do the same thing?
>=20
> -Joe
TMTOWTDI
so does
my $s =3D pack('CC', 0x03, 0x0a);
print ABC $s;
--=20
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
------------------------------
Date: Thu, 19 Oct 2006 12:03:07 +0100
From: Ian Wilson <scobloke2@infotop.co.uk>
Subject: Re: I have no problems eating cereal...after it softens. Why is replacing a simple string so hard then?
Message-Id: <0e-dnd3G74TwxqrYRVnygg@bt.com>
samiam@mytrashmail.com wrote:
>
> No one at any time in this thread gave any substantive evaluation of my
> "Aren't unique identifiers workable, perhaps more readily identified
> than > upon >>?"
>
My newsreader inserts the ">" and attribution for me automatically when
I reply. It also displays the ">" as coloured bars in the margins. It
has a "rewrap" feature that processes the multilevel ">" markers
correctly and ensures that quoted lines don't get longer and longer.
In short: newsreaders know about ">". They don't know about the "unique
identifiers" you just invented.
I don't have any real objection to your "unique identifiers" (though I
regard them as clutter). However if everyone who starts using newsgroups
independantly invents their own conventions I suspect the result will be
very messy and might reduce the usability of this forum.
ISTR Abigail often uses an idiosyncratic method of quoting, I suspect
this is tolerated because Abigail has a long track-record of concise,
accurate and positive contributions and is therefore highly valued as a
contributor. You don't have a track record here.
I've seen it said recently, in the news.admin groups, that one of the
reasons why web-based fora are popular, is the absence of the
nit-picking over netiquette often seen in newsgroups. This may be true,
but I prefer newsgroups anyway (just my GBP 0.02 worth).
------------------------------
Date: Thu, 19 Oct 2006 04:36:05 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Matching umlauts
Message-Id: <VgDZg.5841$Z46.2445@trndny05>
Paul Lalli wrote:
> fritz-bayer@web.de wrote:
>> In other words, that "München" = "Munchen" when I do a pattern match
>> with =~ ?
>
> It is, in general, a really bad idea to simply pretend that one letter
> is another. For an very basic example, the Spanish word "sí" means
> "yes", while the Spanish word "si" means "if". They are different
> letters, and should be treated as such.
I like the Swedish example even better: Höra and hora.
The one means "to hear", the other "whore".
Now imagine you rename Mrs. Höra to Mrs. Hora.
jue
------------------------------
Date: Thu, 19 Oct 2006 09:19:02 +0200
From: Josef Moellers <josef.moellers@fujitsu-siemens.com>
Subject: Re: Matching umlauts
Message-Id: <eh790q$g5a$1@nntp.fujitsu-siemens.com>
fritz-bayer@web.de wrote:
> Hi,
>=20
> I have to match words, which contains umlauts like =E4=F6=FC and also
> french and other ones.
>=20
> Is there a way to use regular expressions in such a way that those get
> treated like their normal corresponding letters?
>=20
> In other words, that "M=FCnchen" =3D "Munchen" when I do a pattern matc=
h
> with =3D~ ?
Why should they be the same if they aren't?
Why should M=FCnster in Northrhine-Westfalia be the same as Munster in=20
Lower Saxony?
"Erdkunde: Sechs, setzen!" ;-)
Josef
--=20
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
------------------------------
Date: 19 Oct 2006 12:57:46 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: Matching umlauts
Message-Id: <4ppb2aFjqq9uU1@news.dfncis.de>
Josef Moellers <josef.moellers@fujitsu-siemens.com> wrote in comp.lang.perl.misc:
> fritz-bayer@web.de wrote:
> > Hi,
> >
> > I have to match words, which contains umlauts like äöü and also
> > french and other ones.
> >
> > Is there a way to use regular expressions in such a way that those get
> > treated like their normal corresponding letters?
> >
> > In other words, that "München" = "Munchen" when I do a pattern match
> > with =~ ?
>
> Why should they be the same if they aren't?
With that argument you'd also have to argue that m//i is useless. After
all "Tad" and "tad" aren't the same either. In the right context it may
make perfect sense to have /München/ match "Munchen".
I know of no feature that would automatically map an accented character
to its un-accented version. You'll have to come up with your own
equivalence tables, probably in form of tr/// statements.
Anno
>
> Why should Münster in Northrhine-Westfalia be the same as Munster in
> Lower Saxony?
>
> "Erdkunde: Sechs, setzen!" ;-)
>
> Josef
> --
> Josef Möllers (Pinguinpfleger bei FSC)
> If failure had no penalty success would not be a prize
> -- T. Pratchett
>
------------------------------
Date: Thu, 19 Oct 2006 11:16:13 +0100
From: Ian Wilson <scobloke2@infotop.co.uk>
Subject: Re: modify posting guidelines to allow MIME charset=utf8
Message-Id: <ReOdnSNlQL7tzarYRVnyiw@bt.com>
Randal L. Schwartz wrote:
> As far as I remember last time I looked, MIME is *not*
> acceptable,
In case you fall under a bus and are not available for resolving such
issues at some point in the future, could you tell us where you looked?
I've used Google to search for relevant stuff but come up blank apart
from some seemingly unrelated discussion of the marking of certain
groups as binary. AFAIK Base64 encoded content wouldn't be considered
binary.
I've skimmed the relevant RFCs and didn't notice anything that would
preclude MIME.
RFC 977 says "the article should be presented in the format specified by
RFC850" and "No attempt shall be made by the server to filter
characters, fold or limit lines, or otherwise process incoming text."
Which suggests that the message content can be in any format so long as
it meets the rule for message termination (LF . LF?).
RFC 850 says "all USENET news articles must be formatted as valid
ARPANET mail messages, according to the ARPANET standard RFC 822."
Which suggests to me that the intent was that rules for NNTP message
content should follow the rules for SMTP message content. Current SMTP
standards for content (such as MIME) ought to be equally acceptable, in
principle, in NNTP.
Wikipedia says "With the header extensions and the Base64 and
Quoted-Printable MIME encodings, there was a new generation of binary
transport. In practice, MIME has seen increased adoption in text messages"
There is no mention of propogation problems with MIME text messages.
I can't find anything relevant in recent news.admin.{technical|misc} and
the only FAQ I can find relates to net.abuse (in which I didn't see any
mention of MIME).
------------------------------
Date: Thu, 19 Oct 2006 04:42:03 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Oct 19 2006
Message-Id: <J7D923.2u8@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.
BatchSystem-SBS-0.04
http://search.cpan.org/~alexmass/BatchSystem-SBS-0.04/
a Simple Batch System
----
CFPlus-0.53
http://search.cpan.org/~mlehmann/CFPlus-0.53/
undocumented utility garbage for our crossfire client
----
Cache-FastMmap-1.10
http://search.cpan.org/~robm/Cache-FastMmap-1.10/
Uses an mmap'ed file to act as a shared memory interprocess cache
----
Cache-FastMmap-1.11
http://search.cpan.org/~robm/Cache-FastMmap-1.11/
Uses an mmap'ed file to act as a shared memory interprocess cache
----
Cache-FastMmap-1.12
http://search.cpan.org/~robm/Cache-FastMmap-1.12/
Uses an mmap'ed file to act as a shared memory interprocess cache
----
Catalyst-Plugin-UploadProgress-0.03
http://search.cpan.org/~agrundma/Catalyst-Plugin-UploadProgress-0.03/
Realtime file upload information
----
Crossfire-0.92
http://search.cpan.org/~mlehmann/Crossfire-0.92/
Crossfire maphandling
----
DBIx-OO-v0.0.1
http://search.cpan.org/~mishoo/DBIx-OO-v0.0.1/
Database to Perl objects abstraction
----
DBIx-Object-v0.0.1
http://search.cpan.org/~mishoo/DBIx-Object-v0.0.1/
Database to Perl objects abstraction
----
Error-0.17007
http://search.cpan.org/~shlomif/Error-0.17007/
Error/exception handling in an OO-ish way
----
Gaim-Log-Parser-0.02
http://search.cpan.org/~mschilli/Gaim-Log-Parser-0.02/
Parse Gaim's Log Files
----
Ingres-Utility-IINamu-0.05
http://search.cpan.org/~worm/Ingres-Utility-IINamu-0.05/
API to IINAMU Ingres RDBMS utility
----
Lingua-TR-Numbers-0.2
http://search.cpan.org/~burak/Lingua-TR-Numbers-0.2/
Converts numbers into Turkish text.
----
List-Pairwise-0.19
http://search.cpan.org/~tdrugeon/List-Pairwise-0.19/
map/grep arrays and hashes pairwise
----
Mail-Salsa-0.10
http://search.cpan.org/~hdias/Mail-Salsa-0.10/
An easy to use perl mailing list manager module.
----
Math-MultiplicationTable-0.01
http://search.cpan.org/~pmint/Math-MultiplicationTable-0.01/
Perl extension for generate multiplication table.
----
Nagios-Plugin-0.13
http://search.cpan.org/~tonvoon/Nagios-Plugin-0.13/
a family of perl modules to streamline writing Nagios plugins
----
Nagios-Plugin-0.14
http://search.cpan.org/~tonvoon/Nagios-Plugin-0.14/
a family of perl modules to streamline writing Nagios plugins
----
SVN-Dump-0.01
http://search.cpan.org/~book/SVN-Dump-0.01/
A Perl interface to Subversion dumps
----
Sys-SigAction-0.09
http://search.cpan.org/~lbaxter/Sys-SigAction-0.09/
Perl extension for Consistent Signal Handling
----
Test-CheckManifest-0.3
http://search.cpan.org/~reneeb/Test-CheckManifest-0.3/
Check if your Manifest matches your distro
----
Test-TestCoverage-0.04
http://search.cpan.org/~reneeb/Test-TestCoverage-0.04/
Test if your test covers all 'public' subroutines of the package
----
UNIVERSAL-to_yaml-0.10
http://search.cpan.org/~gugod/UNIVERSAL-to_yaml-0.10/
to_yaml() method for all objects.
----
WWW-Myspace-0.59
http://search.cpan.org/~grantg/WWW-Myspace-0.59/
Access MySpace.com profile information from Perl
----
WWW-RobotRules-DBIC-0.01
http://search.cpan.org/~ikebe/WWW-RobotRules-DBIC-0.01/
Persistent RobotRules which use DBIC.
----
XML-Filter-EzPod-1.2
http://search.cpan.org/~msergeant/XML-Filter-EzPod-1.2/
A SAX filter (for Pod::SAX) that makes writing Pod easier.
----
tidyview-1.10
http://search.cpan.org/~leif/tidyview-1.10/
a previewer for the effects of perltidy's plethora of options
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: Thu, 19 Oct 2006 08:14:14 +0200
From: Aukjan van Belkum <aukjan@vanbelkum.no.spam.nl>
Subject: Re: Returning to beginning of current line with print()?
Message-Id: <dc1c1$453717b6$c2abfc64$20103@news2.tudelft.nl>
Mark wrote:
> Hello.
>
> My Perl program is writing to STDOUT, which happens to be a command window.
> I want to display processing status to the user, without printing each
> status update on a new line. How can I return to the beginning of the
> current line for each print() statement? I know this is probably quite
> elementary, but I have had no luck finding the answer in the usual
> resources.
>
It is quite elementary .. but you already knew that ;-)
use "\r" at the end of a print statement (assuming you're on unix):
print "Count: $_\r" for ( 0 .. 10000000 );
Aukjan
------------------------------
Date: Thu, 19 Oct 2006 00:16:48 -0500
From: Jialin Li <jialinli1981@gmail.com>
Subject: Re: two array parameter
Message-Id: <eh71p5$2li$1@joe.rice.edu>
Please check:
perldoc perlfun
perldoc perlreftut
=========================
@p1 = qw/df 1 2 31 /;
@p2 = qw/afa ff f4/;
&printit(\@p1,\@p2);
sub printit {
print $#{@_[0]},"\n";
print $#{@_[1]},"\n";
}
=============================
ck wrote:
> Hi
> I have a sub function that pass two array parameter as below:
>
> sub (@p1,@p2) {
>
> print"$#p1\n";
> pirnt"$#p2\n";
> }
>
> I got print out result are 0.
>
> How do I pass two array parameter?
> Thanks
>
------------------------------
Date: 19 Oct 2006 14:06:25 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: two array parameter
Message-Id: <o7qej2p62hctber0distm0f26h4adamtg9@4ax.com>
On 18 Oct 2006 19:16:43 -0700, "ck" <cljlkck@yahoo.com> wrote:
>sub (@p1,@p2) {
This is not valid Perl (5) code. You can have
sub (@@) { ... }
But prototypes are often misunderstood. And they're also frowned upon
by many respectable perl hackers, often with good reasons.
>print"$#p1\n";
>pirnt"$#p2\n";
There's no pirnt() built-in. This is a remark to the effect that it's
better to paste code than to retype it.
>How do I pass two array parameter?
You can't, but you can pass references. You can make this automatic by
means of the \@ prototype. All in all I recommend you to read
perldoc perlsub
perldoc perlref
There's all that I've mentioned in passing here.
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 19 Oct 2006 14:10:20 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: two array parameter
Message-Id: <jjqej2prhn2iege241ivoeaungh5s5dval@4ax.com>
On Thu, 19 Oct 2006 00:16:48 -0500, Jialin Li <jialinli1981@gmail.com>
wrote:
>Please check:
>perldoc perlfun
>perldoc perlreftut
[snip]
>@p1 = qw/df 1 2 31 /;
>@p2 = qw/afa ff f4/;
While you're there, point him to the very first step towards good
programming practices in terms of
use strict;
use warnings; # also read perldoc -f my
>&printit(\@p1,\@p2);
While you're there, check
perldoc perlsub
and discover why the &-form of sub call is obsolete now, and most
likely not to do what you probably expect it to.
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 19 Oct 2006 14:00:48 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: unable to calculate large file size
Message-Id: <nmoej2dcmqaga09bncpndv3q3vb2ql31k4@4ax.com>
(post edited and rearranged for clarity)
On 18 Oct 2006 19:48:19 -0700, himagauri@gmail.com wrote:
>> So you've only tested (or at least only reported) < 1GB and 16GB. What
>> about some intermediate values, say 1.5GB, 3GB, 6GB?
>Point is that I would later have to work on files >16 GB. Hence I
>haven't tested for intermediate values.
1) *Please* do not top-post (see remark above);
2) Then why don't you do it now? Just to know what's going on. I'm
writing some sample code for you but I can't terminate it right now...
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Thu, 19 Oct 2006 09:10:41 +0200
From: "Ferry Bolhar" <bol@adv.magwien.gv.at>
Subject: Re: using 'if' to optionally use a module
Message-Id: <1161241842.804516@proxy.dienste.wien.at>
Uri Guttman:
> if ( $ENV{'HTTP_CONNECTION'} ) {
> require CGI::Carp ;
> CGI::Carp->import( qw( fatalsToBrowser ) ) ;
Why the "qw" here?
> that is about all 'use' does and it is easy enough to emulate.
That's _almost_ all. Placing the above code in a BEGIN block
would actually be all.
Greetings, Ferry
--
Ing Ferry Bolhar
Magistrat der Stadt Wien - MA 14
A-1010 Wien
E-Mail: bol@adv.magwien.gv.at
------------------------------
Date: Thu, 19 Oct 2006 09:16:29 +0200
From: "Ferry Bolhar" <bol@adv.magwien.gv.at>
Subject: Re: using 'if' to optionally use a module
Message-Id: <1161242189.511518@proxy.dienste.wien.at>
David Filmer:
> That seems a bit cleaner and more
> elegant than using 'if' in the conventional manner to optionally use a
> module.
...which wouldn't help at all, because "use" is a _compiler_
directive and an if condition would be executed only at
_run time_. That's why 'if.pm' was implemented...
Greetings, Ferry
--
Ing Ferry Bolhar
Magistrat der Stadt Wien - MA 14
A-1010 Wien
E-Mail: bol@adv.magwien.gv.at
------------------------------
Date: Thu, 19 Oct 2006 03:35:15 -0400
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: using 'if' to optionally use a module
Message-Id: <x7fydkbvws.fsf@mail.sysarch.com>
>>>>> "FB" == Ferry Bolhar <bol@adv.magwien.gv.at> writes:
FB> Uri Guttman:
>> if ( $ENV{'HTTP_CONNECTION'} ) {
>> require CGI::Carp ;
>> CGI::Carp->import( qw( fatalsToBrowser ) ) ;
FB> Why the "qw" here?
habit. tradionally args to use are passed in qw even when there is only
one of them. since this was an expanded and conditional use i kept that
style to highlight the analogous parts of each version.
>> that is about all 'use' does and it is easy enough to emulate.
FB> That's _almost_ all. Placing the above code in a BEGIN block
FB> would actually be all.
correct, since CGI::Carp does export its versions of carp and friends it
should be done in a begin block so those symbols are available to later
code.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Thu, 19 Oct 2006 08:48:46 +0000 (UTC)
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: using 'if' to optionally use a module
Message-Id: <eh7e5e$2cv5$1@agate.berkeley.edu>
[A complimentary Cc of this posting was sent to
Ferry Bolhar
<bol@adv.magwien.gv.at>], who wrote in article <1161241842.804516@proxy.dienste.wien.at>:
> > that is about all 'use' does and it is easy enough to emulate.
>
> That's _almost_ all. Placing the above code in a BEGIN block
> would actually be all.
Only for modules without a lexically scoped effects.
Hope this helps,
Ilya
------------------------------
Date: 19 Oct 2006 02:06:09 -0700
From: usenet@DavidFilmer.com
Subject: Re: using 'if' to optionally use a module
Message-Id: <1161248768.988101.54920@i42g2000cwa.googlegroups.com>
Ferry Bolhar wrote:
> Why the "qw" here?
I always place methods in qw, even if it's only one. Because it often
becomes more than one before the code is done (or when the code is
revised); this is especially true for me with CGI (and POSIX) modules.
It just makes things easier and more consistent (even if it imposes a
very, very tiny overhead).
--
David Filmer (http://DavidFilmer.com)
------------------------------
Date: 19 Oct 2006 05:14:48 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: using 'if' to optionally use a module
Message-Id: <1161260088.210777.32360@h48g2000cwc.googlegroups.com>
Uri Guttman wrote:
> that is about all 'use' does and it is easy enough to emulate. the if
> pragma probably does about the same underneath and it isn't a core
> module (yet afaik).
It's listed in my perlmodlib, which I thought only listed the standard
modules, no? (v5.8.4 for solaris)
Paul Lalli
------------------------------
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 9866
***************************************