From william at knowmad.com Mon Apr 4 08:05:39 2005 From: william at knowmad.com (William McKee) Date: Mon Apr 4 08:06:26 2005 Subject: [Charlotte.PM] Fwd: Turing Complete, was Re: [extremeperl] Logic Programming in Perl -- Just say no Message-ID: <20050404150538.GD24311@knowmad.com> I've recently subscribed to the extremeperl mailing list which has lots of good discussions going on. A recent post reminded me of our discussion from last week comparing Perl with Python. I thought some of you may enjoy this response as well as the article by Paul Graham. William ----- Forwarded message from Shae Matijs Erisson ----- > To: extremeperl@yahoogroups.com > From: Shae Matijs Erisson > Date: Mon, 04 Apr 2005 16:22:19 +0200 > Subject: Turing Complete, was Re: [extremeperl] Logic Programming in Perl -- > Just say no > > > Rob Nagler writes: > > > http://groups.yahoo.com/group/theory-edge/message/9442 > > mentions a Turing Machine compiler written in Perl. Isn't this close > > enough? The point is that you could do theorem proving in Perl. The > > syntax does not have to be Prolog, and could be very Perl-like. > > I've been in a a lot of programming language discussions over the years, and > this particular point is what I call The Turing Tarpit. > The answer is "Yes". Every language is equivalent to every other language at > the turing machine / lambda calculus level. And there's no point in comparing > languages at that level either. > > Because then Perl is no better than, and no different from, any of COBOL, BASIC > ... > > In my opinion, the most useful criteria for comparing languages is: > What do those languages encourage? What do they discourage? > > For more on language differences, check out Paul Graham's article, > "Revenge of the Nerds" at http://paulgraham.com/icad.html > This essay takes a deeper look at language comparisons. > It mentions DSLs, macros, 'conciseness hell', lots of good stuff. > > Personally, I don't believe that you can learn all that Haskell has to teach > from within Perl. But, I would be happy for you to prove me wrong. Why not show > up on the #perl6 channel and work on Pugs? Then you can use both Perl and > Haskell at the same time! > -- > Programming is the Magic Executable Fridge Poetry, | www.ScannedInAvian.com > It is machines made of thought, fueled by ideas. | -- Shae Matijs Erisson > > > > > Yahoo! Groups Links > > <*> To visit your group on the web, go to: > http://groups.yahoo.com/group/extremeperl/ > > <*> To unsubscribe from this group, send an email to: > extremeperl-unsubscribe@yahoogroups.com > > <*> Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ > > > ----- End forwarded message ----- -- Knowmad Services Inc. http://www.knowmad.com From william at knowmad.com Thu Apr 7 05:36:51 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 7 05:37:18 2005 Subject: [Charlotte.PM] April Meeting - reading materials Message-ID: <20050407123650.GP24311@knowmad.com> Hello Mongers, I hope everyone is enjoying the Spring weather and not suffering too much from the pollen. For our next meeting we are going to be joining CharJUG and the ACM student chapter at CPCC for a lecture by Andrew Hunt of The Pragmatic Programmers. The lecture starts at 6:30pm; I'll wait outside with books in tow and an appropriate t-shirt so that you can find the other JAPHs. The lecture is being held at CPCC Central Campus on 1201 Elizabeth Avenue[1]. I'll provide parking info as I hear more. There are several nearby parking decks. If you need a ride from the University area, please post a notice to the list. In preparation for the lecture, I have gleaned some suggested reading materials from around the web: "Cook Until Done" - a recent article by Dave & Andrew http://www.pragmaticprogrammer.com/articles/cook_until_done.html Interview by Chromatic (Perl.com editor) http://www.onlamp.com/pub/a/onlamp/2004/06/24/pragmatic_programmers.html "Don't Live with Broken Windows" - interview by Bill Venners http://www.artima.com/intv/fixit.html _The Pragmatic Programmer: From Journeyman to Master_ http://www.pragmaticprogrammer.com/ppbook/index.shtml As you may have seen in a previous mailing to our list, registration for YAPC::NA[2] (Yet Another Perl Conference) has opened. It's only $85 for 3 days. I am planning to attend this year. Let me know if you are considering going. Finally, some folks have mentioned a desire to help grow our fledgling group. Here's a list few things which I can think of: * Whip the wiki[3] into shape; this is currently running on a test site * Arrange the meeting schedule for the summer including securing a better location with a conference/meeting room and finding speakers or presenters * Offer to present something that you know--even if it's not Perl (well it should at least be about programming) Please add anything that you can think of and/or can do. Thanks, William [1] http://maps.google.com/maps?oi=map&q=1201+Elizabeth+Avenue,+Charlotte,+NC [2] http://yapc.org/America/ -- Knowmad Services Inc. http://www.knowmad.com From william at knowmad.com Thu Apr 7 05:58:35 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 7 05:58:49 2005 Subject: [Charlotte.PM] Fwd: Charlotte Java User's Group meeting - Agile Programming with Andy Hunt Message-ID: <20050407125835.GR24311@knowmad.com> Instead of retyping the meeting details, I'm forwarding along the latest announcement from CharJUG. Note that the address is not the exact location of the meeting room. I'm pretty sure that the IT building is the brand new building next to the old Athens Greek Diner. I'll wait outside until 6:15p. William ----- Forwarded message from Cory Foy ----- > To: charjug@yahoogroups.com > CC: discuss@charlug.org > From: Cory Foy > Date: Thu, 07 Apr 2005 08:40:23 -0400 > Subject: Charlotte Java User's Group meeting - Agile Programming with Andy > Hunt > > The next meeting of the Charlotte Java User's Group will take place on > Thursday, April 21st at 6:30 pm. We are proud to welcome Andy Hunt of > the Pragmatic Programmer and Programming Ruby books. He will be > discussing Agile techniques including Test Driven Development, Pair > Programming and Continuous Integration. > > This event is being co-sponsored by the Association for Computing > Machinery (ACM) Student Chapter of CPCC, and will be held at the CPCC > Central Campus in Charlotte. Parking and entrance is free, though a $5 > dollar donation is requested to help cover costs. > > What: CharJUG Meeting - Agile Programming with Andy Hunt > When: Thursday April 21st, 6:30 pm > Where: CPCC Central Campus - IT Building (Room IT-2132) > The IT Building is located at the corner of Independence and Elizabeth > Avenue. Parking is available free of charge in the student parking deck > on Elizabeth Ave. next to the building. > > Google Map of CPCC: > http://www.google.com/maps?q=1201+Elizabeth+Ave,Charlotte,+NC > > (Note that the IT Building is not at 1201, it is at Independence and > Elizabeth) > > For more information, contact Cory Foy at Cory.Foy@mobilehwy.com or > foyc@cornetdesign.com or by phone at (704) 813-1193. You can also visit > our web site at http://www.charjug.org. > ----- End forwarded message ----- -- Knowmad Services Inc. http://www.knowmad.com From glim at mycybernet.net Sun Apr 10 08:45:00 2005 From: glim at mycybernet.net (Gerard Lim) Date: Sun Apr 10 09:04:18 2005 Subject: [Charlotte.PM] Reminder: Yet Another Perl Conference in Toronto, June 27 - 29 Message-ID: Yet Another YAPC::NA 2005 Conference Reminder --------------------------------------------- YAPC::NA 2005 is Yet Another Perl Conference, North America, this year to be held in downtown Toronto, Ontario, Canada, Mon - Wed 27 - 29 June 2005. Important Dates/Deadlines ------------------------- April 18 -- deadline for paper submissions May 12 -- last day of guaranteed accommodations YAPC::NA is a grassroots, all-volunteer conference. The speaker quality is high, the participants lively, and there are many extra social activities scheduled. We expect a bit over 400 people this year, and registration is proceeding faster this year than in the past. The registration cost is USD$85. Information on registration: http://yapc.org/America/register-2005.shtml http://yapc.org/America/registration-announcement-2005.txt Direct link to registration: http://donate.perlfoundation.org/index.pl?node=registrant%20info&conference_id=423 Want to be a speaker? Deadline for proposal submission is April 18, just over 1 week from now. Go to: http://yapc.org/America/cfp-2005.shtml Need accommodations in Toronto? Go to: http://yapc.org/America/accommodations-2005.shtml If you book before May 13 you will be guaranteed a hotel space. After that getting accommodations will become progressively more difficult. Prices we have arranged are in two different price ranges: approximately US$50 for a dorm room, US$72 for a decent hotel room. All accommodations are very nearby the conference venue. This message comes from the YAPC::NA 2005 organizers in Toronto.pm, http://to.pm.org/, on behalf of The Perl Foundation, http://www.perlfoundation.org/ We look forward to seeing you in Toronto! If you have any questions please contact na-help@yapc.org From dale at lancaster.hm Tue Apr 19 13:54:44 2005 From: dale at lancaster.hm (Dale Lancaster) Date: Tue Apr 19 13:55:07 2005 Subject: [Charlotte.PM] Perl programming position in Charlotte Message-ID: <036a01c54522$04f55a00$8dda19ac@na.choicepoint.net> Greetings all, I hope you don't mind that I take the opportunity to ask if any of you are interested in or know of a person who can fill a Perl programming position I have pending to be filled in the next few weeks. Contract to Hire - Full Time Choicepoint Inc. Ballantyne Area of Charlotte Must be a seasoned Perl programmer familiar with Linux, Apache, MySQL (LAMP environment) and very comfortable and knowledgeable with DHTML, Javascript and CSS. My group creates and maintains applicant screening and processing websites (HR type stuff) for several companies that do business with Choicepoint (so far all of them are Fortune 500 companies). This is as an ASP (Application Service Provider) offering. We have several new sites due to spin up this year and we are growing steadily. This position, like all the other three programmers who currently work for me, will require you to work on many different tasks, technologies and websites, sometimes on the same day :-). We have about 150k lines of legacy code spread over a dozen packages and a couple dozen Perl scripts and many dozens of html template files. You will not be bored in this environment. It is very important that you can efficiently read code (reverse engineer and debug) existing Perl code in order to function well in our environment. You should be self-sufficient with lots of initiative and good work ethics; we have flexible work hours with some ability to work from home occasionally (after you get up to speed on our environment). This is not an entry level position. We do not use OO Perl; it is more procedural in nature though we extensively use CPAN modules. We do maintain a MVC type of architecture, we do not use MASON or anything thing similar, we have a fairly straight forward in house approach to separating code from content. We are heavy on MySQL/DBI. Knowing Apache intimately is not required, but is a plus, since we already have our Apache environment up and running, but you will have to be comfortable modifying environment and configuration files for Apache. If you just happened to be really strong in operations (Linux/Apache) I would probably be willing to pay a little extra. A college degree is not required, but you must pass a drug and criminal background check and probably take a Brainbench Perl test. If you are seriously interested or know of someone, please contact me directly day or night, my cell phone or email is my preferred method of contact. Dale Lancaster Assistant Vice-President of Technology CPScreenSelect, Choicepoint Inc. 704.973.5615/704.953.4470 (Cell) dale.lancaster@choicepoint..com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/charlotte/attachments/20050419/7e34af89/attachment.htm From kwhitsel at gmail.com Wed Apr 20 06:32:42 2005 From: kwhitsel at gmail.com (Kurt W. Whitsel) Date: Wed Apr 20 06:32:51 2005 Subject: [Charlotte.PM] May Discussion topic In-Reply-To: <42665712.712380e7.706d.0b40@mx.gmail.com> References: <42665712.712380e7.706d.0b40@mx.gmail.com> Message-ID: <36540a8405042006324f28784c@mail.gmail.com> I have been playing around with different perl templating modules Mason, templatetoolkit and html::template. It would be interesting to see examples of different templating modules and to compare and contrast some of the different popular or less popular ones. I would be happy to give an example of using the template toolkit since that is the one I have used the most. Any thoughts? Kurt From william at knowmad.com Wed Apr 20 06:45:31 2005 From: william at knowmad.com (William McKee) Date: Wed Apr 20 06:45:46 2005 Subject: [Charlotte.PM] May Discussion topic In-Reply-To: <36540a8405042006324f28784c@mail.gmail.com> References: <42665712.712380e7.706d.0b40@mx.gmail.com> <36540a8405042006324f28784c@mail.gmail.com> Message-ID: <20050420134531.GS24311@knowmad.com> Hey Kurt, This sounds like a great topic for the May meeting. I have several which I've used (Text::Bind, Text::Template, Petal). What features should we compare? It would be very cool to come up with a page which is then rendered via each of the templates being presented. What do you think? William PS: the meeting tomorrow night is at CPCC. I'll send a reminder notice latter today. -- Knowmad Services Inc. http://www.knowmad.com From dale at lancaster.hm Wed Apr 20 07:17:01 2005 From: dale at lancaster.hm (Dale Lancaster) Date: Wed Apr 20 07:17:26 2005 Subject: [Charlotte.PM] May Discussion topic References: <42665712.712380e7.706d.0b40@mx.gmail.com> <36540a8405042006324f28784c@mail.gmail.com> Message-ID: <003001c545b3$9fbcf2f0$8dda19ac@na.choicepoint.net> Great topic to discuss. d ----- Original Message ----- From: "Kurt W. Whitsel" To: Sent: Wednesday, April 20, 2005 9:32 AM Subject: [Charlotte.PM] May Discussion topic > I have been playing around with different perl templating modules > > Mason, templatetoolkit and html::template. > > > It would be interesting to see examples of different templating > modules and to compare and contrast some of the different popular or > less popular ones. > > I would be happy to give an example of using the template toolkit > since that is the one I have used the most. > > > Any thoughts? > > > > Kurt > _______________________________________________ > charlotte mailing list > charlotte@pm.org > http://mail.pm.org/mailman/listinfo/charlotte > From diona at studio12a.com Wed Apr 20 07:34:02 2005 From: diona at studio12a.com (diona kidd) Date: Wed Apr 20 07:34:19 2005 Subject: [Charlotte.PM] May Discussion topic In-Reply-To: <20050420134531.GS24311@knowmad.com> References: <42665712.712380e7.706d.0b40@mx.gmail.com> <36540a8405042006324f28784c@mail.gmail.com> <20050420134531.GS24311@knowmad.com> Message-ID: <1114007642.9746.175.camel@localhost.localdomain> I think cleanliness and syntax is certainly a factor to discuss. How close is the syntax to perl? Also the ability to set different output formats (html, xml, etc.) Any other pros/cons... I agree, nice topic. On Wed, 2005-04-20 at 09:45 -0400, William McKee wrote: > Hey Kurt, > > This sounds like a great topic for the May meeting. I have several which > I've used (Text::Bind, Text::Template, Petal). > > What features should we compare? It would be very cool to come up with a > page which is then rendered via each of the templates being presented. > What do you think? > > > William > > PS: the meeting tomorrow night is at CPCC. I'll send a reminder notice > latter today. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/charlotte/attachments/20050420/1ed6dbfb/attachment-0001.htm From william at knowmad.com Thu Apr 21 05:41:40 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 21 05:41:56 2005 Subject: [Charlotte.PM] April Perl Mongers Meeting - Thursday, April 21st at 6:30pm Message-ID: <20050421124139.GF24311@knowmad.com> Hello Charlotte Perl Mongers, As previously announced, our regularly scheduled meeting tonite will be a field trip to hear Andrew Hunt of the Pragmatic Programmers talk about Agile Programming. This event is being co-sponsored by CharJUG and the Association for Computing Machinery (ACM) Student Chapter of CPCC, and will be held at the CPCC Central Campus in Charlotte. Parking and entrance is free, although you may want to come early for a good seat because they are expecing quite a turnout! Next month's meeting will be on the topic of templating systems. If you have a favorite module or method of processing templates, post a note on the mailing list so that we can include it in the list. See you at the meeting, William McKee What: Agile Programming with Andy Hunt When: Thursday April 21st, 6:30 pm Where: CPCC Central Campus - IT Building (Room IT-2132) The IT Building is located at the corner of Independence and Elizabeth Avenue. Parking is available free of charge in the student parking deck on Elizabeth Ave. next to the building. A link from the CharLUG site that explains the directions and location: http://lamp.cpcc.edu/~rmw5954a/charlug/map/ Google Map of CPCC: http://maps.google.com/maps?q=1338%20elizabeth%20avenue%20charlotte&spn=0.003716%2C0.009808&hl=en For more information, contact William McKee at william@knowmad.com or by phone at (704) 343-9330. You can also visit our web site at http://charlotte.pm.org. -- Knowmad Services Inc. http://www.knowmad.com From william at knowmad.com Thu Apr 21 05:47:27 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 21 05:47:49 2005 Subject: [Charlotte.PM] Business Issues Message-ID: <20050421124725.GI24311@knowmad.com> Since we won't be having a regular meeting, I'd like to throw out some business issues that need to be discussed before the next meeting. Please add your comments or thoughts. 1. Meetup.com reorganization: The Meetup.com website that about half of the group is subscribed to will soon be charging a Group fee of $19/mo ($228/yr). Unless someone would like to pay for this service, I'm going to let the group be shut down. Speak up soon if you think Meetup.com is worth the investment. 2. Meeting time: I've received feedback that our 7pm meeting time is too early for some folks getting off work in the downtown/southside areas. Is there any interest in or resistance to starting the meetings at 7:30pm? 3. Meeting location: Next month's meeting will require a decent AV setup to be effective. Jackson's Java is a wonderful place for social meetings but is inadequate for technical meetings. My plan is to contact the UNCCLUG to secure a room on campus. There is a $5 parking fee which could be shared if the non-students meet at Jackson's beforehand and carpool to the campus. I'm open to other suggestions but need a quick solution so that we can secure and announce the May meeting. 4. Volunteers: Got an idea? Looking for a way to get more involved? Want to see something different? There are many opportunities for getting involved including librarian, meeting planning, website design, website management (Eileen has offered to help out with the wiki), presentations, finding speakers, and more. I'm happy to keep the group as a social organization but would really like to see it become a resource for Perl programmers which requires more time and effort than one person can give. 5. Job offers: I find the recent job offers that have come through the list to be a good sign that the Perl Mongers group is getting noticed in the area. I think that we should encourage businesses and recruiters seeking Perl talent to use the mailing list. For folks who have a good job and don't want to see these mailings, I'd encourage all job listings to have the word JOB in capitals somewhere in the subject for easy filtering. Thanks, William -- Knowmad Services Inc. http://www.knowmad.com From william at knowmad.com Thu Apr 21 05:51:29 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 21 05:51:40 2005 Subject: [Charlotte.PM] May Discussion topic In-Reply-To: <36540a8405042006532debfee0@mail.gmail.com> References: <42665712.712380e7.706d.0b40@mx.gmail.com> <36540a8405042006324f28784c@mail.gmail.com> <20050420134531.GS24311@knowmad.com> <36540a8405042006532debfee0@mail.gmail.com> Message-ID: <20050421125129.GL24311@knowmad.com> On Wed, Apr 20, 2005 at 09:53:38AM -0400, Kurt W. Whitsel wrote: > I think writing the same application, perform the same task and > compare the steps involved would lead to a valuable and interesting > discussion. It sounds like we have agreement. I've put together a page on the wiki to track the meeting preparations[1]. Everyone please add their favorite templating language to the appropriate list (reviewed templates if you plan to review or proposed templates if you don't want to do a review). The next step is to create an output page and the set of data to be used. Here's a start on the data: %data = ( my_string => 'Fubar', my_array => ['Enterprise', 'Columbia', 'Discovery', 'Atlantis', 'Endeavor', 'Challenger'], my_hash => { emp_id => '23456', title => 'Captain', first_name => 'James', middle_name => 'T', last_name => 'Kirk', }, my_object => ??? ); William [1] http://test.knowmad.com/~charlott/kwiki/index.cgi?May2005 -- Knowmad Services Inc. http://www.knowmad.com From phma at phma.hn.org Thu Apr 21 06:00:34 2005 From: phma at phma.hn.org (Pierre Abbat) Date: Thu Apr 21 06:00:46 2005 Subject: [Charlotte.PM] Business Issues In-Reply-To: <20050421124725.GI24311@knowmad.com> References: <20050421124725.GI24311@knowmad.com> Message-ID: <200504210900.34492.phma@phma.hn.org> On Thursday 21 April 2005 08:47, William McKee wrote: > 1. Meetup.com reorganization: The Meetup.com website that about half of > the group is subscribed to will soon be charging a Group fee of $19/mo > ($228/yr). Unless someone would like to pay for this service, I'm going > to let the group be shut down. Speak up soon if you think Meetup.com is > worth the investment. If we get the payment in by the end of April, it's only $9 per month. Did anyone find the group through Meetup? phma -- .i le babzba ba zbasu lo jbazbabu lo babjba From Cory.Foy at mobilehwy.com Thu Apr 21 06:23:55 2005 From: Cory.Foy at mobilehwy.com (Cory Foy) Date: Thu Apr 21 06:24:05 2005 Subject: [Charlotte.PM] Tidying HTML output / Temp Files Message-ID: <4267A96B.2080607@mobilehwy.com> This is a two-in-one post question. :) I am working on a little script that works with some HTML being returned. Because I ultimately need to make XPath queries into it, and the HTML is not XHTML, I need to tidy it up. The solution I have was to get the content back, write it to a temp file, make an external call to Tidy telling it to write back to the file, and then re-reading in the file. It looks like: #################### my $out = $mech->content(); $out =~ s/&/&/g; open TEMP, '>tmp1.1'; print TEMP $out; close TEMP; `c:\\perl\\tidy.exe --write-back true --output-xhtml true c:\\perl\\tmp1.1`; my $file = 'c:\\perl\\tmp1.1'; my $xp = XML::XPath->new(filename => $file); #################### (by the way, I'm sure my Perl is rusty - just getting back into it after a while, so syntactic suggestions are welcome too) So two questions: 1) What is a better way to get a temp file? I don't like the hardcoding of a file name - it smells to me. 2) Is there a better way to tidy the output so that I don't have to rely on writing to a temp file which has to be processed by tidy? Thanks! Cory From diona at studio12a.com Thu Apr 21 08:29:26 2005 From: diona at studio12a.com (diona kidd) Date: Thu Apr 21 08:29:40 2005 Subject: [Charlotte.PM] Tidying HTML output / Temp Files In-Reply-To: <4267A96B.2080607@mobilehwy.com> References: <4267A96B.2080607@mobilehwy.com> Message-ID: <1114097366.9746.216.camel@localhost.localdomain> For temp files you could use File::Temp to generate unique temp file names if you're concerned at all about overwriting or race conditions. Couldn't you just hold it in memory though? I'm not familar with the requirements of tidy.exe...does it need a file? Diona On Thu, 2005-04-21 at 09:23 -0400, Cory Foy wrote: > This is a two-in-one post question. :) > > I am working on a little script that works with some HTML being > returned. Because I ultimately need to make XPath queries into it, and > the HTML is not XHTML, I need to tidy it up. > > The solution I have was to get the content back, write it to a temp > file, make an external call to Tidy telling it to write back to the > file, and then re-reading in the file. It looks like: > > #################### > my $out = $mech->content(); > $out =~ s/&/&/g; > > open TEMP, '>tmp1.1'; > print TEMP $out; > close TEMP; > > `c:\\perl\\tidy.exe --write-back true --output-xhtml true c:\\perl\\tmp1.1`; > > my $file = 'c:\\perl\\tmp1.1'; > my $xp = XML::XPath->new(filename => $file); > #################### > > (by the way, I'm sure my Perl is rusty - just getting back into it after > a while, so syntactic suggestions are welcome too) > > So two questions: > > 1) What is a better way to get a temp file? I don't like the hardcoding > of a file name - it smells to me. > > 2) Is there a better way to tidy the output so that I don't have to rely > on writing to a temp file which has to be processed by tidy? > > Thanks! > > Cory > > _______________________________________________ > charlotte mailing list > charlotte@pm.org > http://mail.pm.org/mailman/listinfo/charlotte -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/charlotte/attachments/20050421/0a34e820/attachment.htm From william at knowmad.com Thu Apr 21 14:03:12 2005 From: william at knowmad.com (William McKee) Date: Thu Apr 21 14:03:32 2005 Subject: [Charlotte.PM] Tidying HTML output / Temp Files In-Reply-To: <4267A96B.2080607@mobilehwy.com> References: <4267A96B.2080607@mobilehwy.com> Message-ID: <20050421210312.GQ24311@knowmad.com> On Thu, Apr 21, 2005 at 09:23:55AM -0400, Cory Foy wrote: > The solution I have was to get the content back, write it to a temp > file, make an external call to Tidy telling it to write back to the > file, and then re-reading in the file. It looks like: That looks like it would work. However, you may prefer to use HTML::Tidy which would not require an external file to do the cleanup (from my reading of the POD). The qestion would then be can XML::XPath work with a string or does it require a file. I'd strongly suggest using either the File::Temp module that Diona suggested or IO::File which has a tmpnam function that can create a temporary file. William -- Knowmad Services Inc. http://www.knowmad.com From Cory.Foy at mobilehwy.com Thu Apr 21 14:08:50 2005 From: Cory.Foy at mobilehwy.com (Cory Foy) Date: Thu Apr 21 14:08:59 2005 Subject: [Charlotte.PM] Tidying HTML output / Temp Files In-Reply-To: <20050421210312.GQ24311@knowmad.com> References: <4267A96B.2080607@mobilehwy.com> <20050421210312.GQ24311@knowmad.com> Message-ID: <42681662.8080301@mobilehwy.com> William McKee wrote: > That looks like it would work. However, you may prefer to use HTML::Tidy > which would not require an external file to do the cleanup (from my > reading of the POD). The qestion would then be can XML::XPath work with > a string or does it require a file. I'd strongly suggest using either > the File::Temp module that Diona suggested or IO::File which has a > tmpnam function that can create a temporary file. Ok, thanks. I think I might have tried HTML::Tidy, but now I'm not sure. XPath will work with a string, I was just using the file loading as a shortcut since I had to write it out. Thanks everyone for your suggestions! Cory