Re: each considered harmful?

2003-06-15 Thread Paul Johnson
ng > 'keys' or 'values' is inefficient and destroys most gains from > iterating over the hash using each... Calling keys() (or values()) in void context is quite efficient. Whether or not you appreciate the aesthetics is perhaps quite another matter. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: each considered harmful?

2003-06-14 Thread Paul Johnson
bout the solution in the docs for each. There is a single iterator for each hash, shared by all "each", "keys", and "values" function calls in the program; it can be reset by reading all the elements from the hash, or by evaluating "keys HASH" or "values HASH". perldoc -f each -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: deprecated our() indicated in perldoc of Getopt::Std

2001-04-20 Thread Paul Johnson
On Fri, Apr 20, 2001 at 03:01:25PM -0700, Alan E. Derhaag wrote: > Paul Johnson <[EMAIL PROTECTED]> writes: > > You installed 5.6.1, read the docs, used "our" and found it didn't work > > on 5.00503, right? > > > > That's because it's new

Re: deprecated our() indicated in perldoc of Getopt::Std

2001-04-20 Thread Paul Johnson
er version of Getopt::Std get installed with a later > version of perl? I don't think it did. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Extracting required files

2001-04-20 Thread Paul Johnson
eone mutter "halting problem"? What modules does this program use? $ perl -ne 'chomp; require' -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: [DIGEST] mod_perl digest 04/07/01

2001-04-10 Thread Paul Johnson
On Tue, Apr 10, 2001 at 10:05:30AM -0400, Geoffrey Young wrote: > > well, 5.6.1 at least - my bleedperl still says 5.7.0 (and so does > http://www.cpan.org/src/index.html) http://www.cpan.org/authors/id/JHI/perl-5.7.1.tar.gz OK, so it's less than 12 hours old :-) -- Paul Jo

Re: [DIGEST] mod_perl digest 04/07/01

2001-04-10 Thread Paul Johnson
On Tue, Apr 10, 2001 at 09:36:45AM -0400, Geoffrey Young wrote: > o Perl > - stable: 5.6 (released March 23, 2000) [5] > - development: 5.7 [6] That'll be 5.6.1 and 5.7.1 now. (perl.com is out of date) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: mod_perl-1.24: ...called too early to check prototype...

2001-02-28 Thread Paul Johnson
> ... > } else {# invalid token > $q->delete($tokenname); > validate_token($q); # get a new token @@@trouble line > } > } > > > Am I right that this is not a programming error on my side? Probably. Either provide a forward declaration of th

Re: [RFC] mod_perl Digest path...

2001-01-31 Thread Paul Johnson
is a parse_from_filehandle() method which seems to be what you are after. Alternatively, you can download podlators-1.07 and PodParser-1.18 from CPAN. I don't think either has a requirement for 5.6.0. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net