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
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
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
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
eone mutter "halting problem"?
What modules does this program use?
$ perl -ne 'chomp; require'
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
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
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
> ...
> } 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
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