Re: CPAN pod2html: what does CPAN use for itself? RESOLVED

2004-05-02 Thread Michael C. Davis
At 10:30 PM 5/1/04 -0500, Michael C. Davis wrote: >Hi, I have some modules and I want to have their POD output look like CPAN >pages. Does anyone know what CPAN uses to turn a submitted module into the >web pages shown on search.cpan.org? > >The pod2html that comes with my pe

CPAN pod2html: what does CPAN use for itself?

2004-05-01 Thread Michael C. Davis
Hi, I have some modules and I want to have their POD output look like CPAN pages. Does anyone know what CPAN uses to turn a submitted module into the web pages shown on search.cpan.org? The pod2html that comes with my perl distribution yields workable HTML, but, even if I manually add a link to t

Re: coding standards question and RFC

2004-04-21 Thread Michael C. Davis
At 06:23 PM 4/19/04 -0700, drieux wrote: >The problem then becomes, and I can not tell from >your email - if you are in the position to be setting >'corporate policy' - Which is the Real Issue here. Thanks for the insights, drieux. While I wish I were in a position to establish corporate policy,

Re: #include like in C

2004-04-21 Thread Michael C. Davis
At 11:59 AM 4/20/04 -0700, [EMAIL PROTECTED] wrote: >I need to include a header/boilerplate file in several Perl scripts. >At this point, I'm using it as a module, but it's a big kludge. Essentially, > I want the functionality that you have in C, where you can just #include >the file, and it's eval

coding standards question and RFC

2004-04-19 Thread Michael C. Davis
Hi list, Having worked with Perl for a while now, it looks like Perl is going to be part of my life for some time to come. So, it's time to get formal about coding standards and practices. First on the list is deciding how to name things. One standard shows up frequently (camelBack for method

Re: terminal manipulation in Perl

2004-03-18 Thread Michael C. Davis
At 11:55 AM 3/18/04 +, Ohad Ohad wrote: >How do I send the cursor to the begining of current line? On which operating system/s do you want to do this? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: second-level string interpolation

2004-03-13 Thread Michael C. Davis
At 10:39 AM 3/13/04 -0800, R. Joseph Newton wrote: >> my $header = <<'end_of_header'; >> # File: $filename >> end_of_header >> >> my $filename = 'xyz'; >> print $header, "\n"; # output: want to see # File: xyz, but get # File: >> $filename > >I am not sure how the above is any m

Re: second-level string interpolation

2004-03-12 Thread Michael C. Davis
Thanks everyone for the great ideas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

second-level string interpolation

2004-03-12 Thread Michael C. Davis
Hi, Apologies if I'm bringing up a repeated topic. I searched the list archive and the web and nothing specific has turned up so far. Is there a way to defer evaluation of the contents of a here-doc-defined value such that one can embed variables in the here-doc and not have them evaluated until

Re: How to make object properties accessible by same-named function

2004-03-10 Thread Michael C. Davis
At 01:26 PM 3/10/04 -0700, Wiggins d Anconia wrote: >I believe this is handled with Autoloading. Check out the Autoloading >section of perldoc perlsub for more. In particular check out the >AUTOLOAD method of the AppConfig::State module source: > >http://search.cpan.org/src/ABW/AppConfig-1.56/lib/A

How to make object properties accessible by same-named function

2004-03-10 Thread Michael C. Davis
Hi, I saw this neat trick while looking at AppConfig.pm on CPAN. It lets you define configuration variables in a file and, having read them, access them either by name-as-string OR as a function having the name of the variable, like so (copied from the CPAN documentation): # create/define com

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 11:32 AM 3/9/04 -0700, Wiggins d Anconia wrote: > ... "famboozled watchamathingie with xanatically whooziewhatsit" on a beginners list ;-)... Oh yeah, since you bring it up about the whooziewhatsit ... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 09:52 AM 3/9/04 -0700, Wiggins d Anconia wrote: > ... >a framework for handling time slicing, or event >programming tasks, or multi-tasking processes If that's what it is, these terms localize it pretty well for me. "An event-based framework for handling time-slicing in multitasking processes."

Re: POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 08:54 AM 3/9/04 -0700, Wiggins d Anconia wrote: >In this case the desire to fork multiple processes and maintain >bi-directional communication with them becomes a nightmare of dealing >with forking code, pipes, and all of the other IPC nasties. >POE::Wheel::Run encapsulates all of that providin

POE [WAS:Re: Forking]

2004-03-09 Thread Michael C. Davis
At 11:08 PM 3/8/04 -0500, Wiggins d'Anconia wrote: >This is where I do my usual little dance, though untimely as it may be >in this case, across the stage and say "POE" then exit again as if I was >still on vacation OK, I'll bite. What's so great about POE, and why, oh, why, do you love it

Re: how big is my data structure

2004-03-08 Thread Michael C. Davis
At 08:57 PM 3/8/04 +0100, Paul Johnson wrote: >On Mon, Mar 08, 2004 at 01:20:26PM -0600, Michael C. Davis wrote: > >> Hi, is there a good way to tell how much memory a given data structure is >> consuming? I realize that there are issues in using this number to >>

how big is my data structure

2004-03-08 Thread Michael C. Davis
Hi, is there a good way to tell how much memory a given data structure is consuming? I realize that there are issues in using this number to determine runtime memory requirements (like the fact that, in some circumstances, a running Perl process does not give back allocated memory to the operating

Re: Cache::Filecache Question

2004-03-05 Thread Michael C. Davis
At 09:58 PM 3/4/04 -0800, R. Joseph Newton wrote: >If you are using the Cache::FileCache package, the package-level functions >exorted by the package are available to you. Any object blessed into this >package will have access to all methods defined in the package. Remember that >anmespace is a g

Cache::Filecache Question

2004-03-04 Thread Michael C. Davis
Hi, I'm having trouble finding much documentation of namespaces as used with Cache::FileCache. I've read the CPAN page and it doesn't say much about that particular issue. Could anyone point me to anything more explanatory. My particular interest is in the relation between namespace and specific

Re: Exit

2004-03-03 Thread Michael C. Davis
Thanks for all the insights, Rob. You've helped a *ton* of people. Good luck for the future. At 06:17 PM 3/3/04 -, Rob Dixon wrote: >I hope, and think, that I've helped several people to >be more eloquent in Perl. > >The language fascinates me in the way that nearly all >who can speak can us

Re: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 08:54 PM 2/27/04 -0800, R. Joseph Newton wrote: >I think it might also be good to refer the OP back to James' post, which he seems >to have overlooked. The caveat you provided earlier still makes sense. Thanks for the ideas. Are you referring to James' suggestion about always using parens on

RE: Module to pull Netstat summary information?

2004-02-27 Thread Michael C. Davis
At 03:19 PM 2/28/04 +1100, David le Blanc wrote: > >Are you developing for Linux? A generic Linux PROC handler might >be they way you go. Want to achieve CPAN developer status? :-) OK, that's the "glory" part. Now which way to the "fortune"? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Module to pull Netstat summary information?

2004-02-27 Thread Michael C. Davis
At 09:59 AM 2/27/04 -0700, Wiggins d Anconia wrote: >It appears netstat just reads the values from /proc/net and prints them >in a nice way, so presumably you could use standard opens on the /proc >files and read specifically what you want rather than having netstat >parse them for you. Though thi

RE: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 01:31 AM 2/28/04 +1100, David le Blanc wrote: >Now remember, a perl 'prototype' is not a prototype in the regular >sense, >but a method to override perl's natural greedy argument list collection, >and a method to create functions which emulate perl's builtins (ie, >provide >hints to the expected

Re: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 02:32 PM 2/27/04 -, Rob Dixon wrote: >I haven't looked at this at all carefully, but my first guess would be >be that you need to call the subroutine as if it was one: > > print MyProject::CoreConstants::EarliestValidTimestampAsNumber() + 1, "\n"; Yes, this certainly solves the problem I'm

subroutine call weirdness

2004-02-27 Thread Michael C. Davis
Hi list, I just ran across some unexpected results in passing arguments to user-defined subroutines. Could someone who has been around Perl a while longer check this and make sure I'm seeing this right? I've got some code that implements a constant as a subroutine call (to keep the constant from

How to implement container class/collection/managed list

2004-02-17 Thread Michael C. Davis
Hi list, Can anyone recommend a CPAN or Perl core module that implements a container class / collection / managed list or somethign like that. I've found a couple that I'm about to study now: Tie::Collection Class::Composite Class::Container Is there such a module that a

Re: testing state of filehandle

2004-02-11 Thread Michael C. Davis
>That's fine, but the Usenet (NNTP) protocol keeps track of the >tree structure of posts and responses. Most News client software >shows that structure, and both Daniel and I can see your original >post as the tail end of a thread of thirty or so postings. Woops, sorry! Thx for making the distinc

Re: testing state of filehandle

2004-02-11 Thread Michael C. Davis
At 07:30 PM 2/11/04 -, Rob Dixon wrote: > >You built your OP by replying to 'Array containment'. > True, but I'm looking at my original post and I don't see even a single reference to 'Array containment'. The subject shows to me as 'testing state of filehandle'. I guess my mailer retained a

Re: testing state of filehandle

2004-02-11 Thread Michael C. Davis
At 07:22 PM 2/11/04 -, Rob Dixon wrote: >Please guys, not in an existing thread. Not sure I undestand, looks like a new thread ... ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: testing state of filehandle

2004-02-11 Thread Michael C. Davis
At 11:18 AM 2/11/04 -0800, drieux wrote: > perldoc IO::Handle Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

testing state of filehandle

2004-02-11 Thread Michael C. Davis
Hi all, Here's a simple question I should probably already know the answer to but I don't and the documentation thus far has not been useful. How can I tell if a given filehandle is open? You can't test the handle itself because if it's not open yet the compiler complains about a bareword.

Re: Uploading large files thru HTTP

2004-02-09 Thread Michael C. Davis
The CGI:: module limits largest file size with a variable called $CGI::POST_MAX. From the documentation: " [ ...] If set to a non-negative integer, this variable puts a ceiling on the size of POSTings, in bytes. If CGI.pm detects a POST that is greater than the ceiling, it will immediately exit w

Re: Script Kiddie issues

2004-02-07 Thread Michael C. Davis
What a great idea. You'll make lots of new friends in the Big House. At 04:24 PM 2/6/04 -0500, Michael W.Cocke wrote: >On Fri, 6 Feb 2004 07:55:41 -0800 (PST), [EMAIL PROTECTED] (Lonewolf) >wrote: > >>Frankly I use the apache filter to check for people looking for cmd.exe or >>root.exe or any one

Re: Module for Country/Country Codes Lists

2004-02-04 Thread Michael C. Davis
Look at Net::Domain::TLD on CPAN It has a fairly comprehensive list of country codes as well as top-level domain names. I noticed that it did not include entries that would validate '.co.uk' or '.co.jp', which echoes your concern about how actively this module is maintained. I would imagine that

Re: How Am I?

2004-02-04 Thread Michael C. Davis
Any of us could have written an email like that. No big deal. Now THIS, however, is embarrassing: I once had an employee who had a girlfriend named Jane. We had a client named Janet. (You can see where this is going.) Yup, turned out he like to write intimate emails involving fantasy scenario

Re: How Am I?

2004-02-04 Thread Michael C. Davis
Any of us could have written an email like that. No big deal. Now THIS is embarrassing: I once had an employee who had a girlfriend named Jane. We had a client named Janet. (You can see where this is going.) Yup, turned out he like to write highly intimate emails involving fantasy scenarios w

what is a pseudohash

2004-02-03 Thread Michael C. Davis
Hi all, The CPAN documentation for Apache::Reload refers to "pseudohashes". What is a pseudohash? Does anyone know what they could be referring to? Here's the section that uses the term: [..] "The short summary of this is: Don't use psuedohashes. Use an array with constant indexes. Its faste

Re: Need help sorting by specific fields in file.

2004-02-02 Thread Michael C. Davis
At 01:49 PM 2/2/04 -0600, Dennis G. Wicks wrote: >I have a file that I need to sort and currently I am just >sorting it by > > @datalist = sort(@datalist); > >but it will eventually have many more records and many of >them may be quite large, but I only need to sort on the >first six characte

Re: (U) Oracle clustering on Linux/Intel based Platforms with a SAN ....

2004-02-02 Thread Michael C. Davis
I think it's easy to ignore a question that I'm not interested in, and I don't mind a wide variety of topics. However, a message that doesn't relate to Perl at all should at least have "OT" in the subject, especially for the sake of those who are offended by such things. At 06:17 PM 2/2/04 -,

Re: upgrading perl to 5.6 from 5.005_03 question?

2004-02-02 Thread Michael C. Davis
Ravi, I just upgraded from 5.6 to 5.8.0, and I can tell you I am VERY happy that I left both perl installs intact, because it allowed me to compare the operation of my code under each version. If there was a difference in how my code worked, it was due to a change in the Perl version or my insta