RE: :FTP works someplaces

2005-06-17 Thread Thomas Bätzler
Robert Citek [EMAIL PROTECTED] Anyone have any ideas why code using Net::FTP on one machine won't work on another? If both machines are on the same network segment trying to connect against the same server, no. However, the most common cause of problems with Net::FTP is not a Perl but a

PurpleWiki

2005-06-17 Thread MNibble
Aloha i downloaded and installed PurpleWiki form Cpan ... so far so good, but now i' m lost ... . When i try to run it, buy calling http://someserver/someplace/wiki.pl i get the that error: unable to parse config file at /usr/local/share/perl/5.8.4/PurpleWiki/Config.pm line 106. I got to

Recommendation for a XML Parser defined against a DTD?

2005-06-17 Thread Ravi Malghan
Hi: I have a bunch of xml files defined against a DTD. I want to parse them. I googled for perl XML reader modules and found lots of them. Anybody have used specific ones and have recommendations? Thanks Ravi __ Do You Yahoo!? Tired of spam?

RE: :FTP works someplaces

2005-06-17 Thread Scott Brodsky
What is the best way to perform error checking on the below ftp code? Adding a $newerr=1 in replacement of the 'die' statement and then a final catchall to check if $newerr==1? If that is the best way, how do you capture/display the error message? Instead of 'or die' can you do 'or

Use one option more than once with Getopts

2005-06-17 Thread Larsen, Errin M HMMA/IT
Hi Perl folks, Is there a way to use the Getopts modules to accept more than one instance of a single option? Here is an example command line that I would like to see: # mailfiles -f filename1 -f filename2 [EMAIL PROTECTED] [EMAIL PROTECTED] I'm writing a script to send an email (using

RE: Use one option more than once with Getopts

2005-06-17 Thread Larsen, Errin M HMMA/IT
Larsen, Errin M HMMA/IT wrote: Hi Perl folks, Is there a way to use the Getopts modules to accept more than one instance of a single option? Here is an example command line that I would like to see: # mailfiles -f filename1 -f filename2 [EMAIL PROTECTED] [EMAIL PROTECTED]

enter password for su through a script

2005-06-17 Thread angie ahl
Hi I'm hoping someone can point me at the right manual/commands I'm trying to work out how to copy a directory (and contents) owned by one user (user1) into a directory owned by another (user2). user1 is user admin and group wheel BTW. The user the files are being copied to is more restriced.

Re: Best practice when using data from external files

2005-06-17 Thread Dale
Hi Wiggins d'Anconia, you wrote : Dale wrote: [snip] I think a bit of background is needed. I work for the helpdesk of an ISP. The space I've got is a staff account which mirrors the service the residential customers receive. It's got a cgi-bin (of course, otherwise there wouldn't be any

How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Siegfried Heintze
Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Siegfried Heintze wrote: Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? Siegfried How do you want to handle Sunday? Is that the previous Sunday

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread Paul Johnson
On Fri, Jun 17, 2005 at 04:18:37PM -0700, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Siegfried Heintze wrote: Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well

Re: How to figure date of Sunday? Favorite Date/Time packages

2005-06-17 Thread John W. Krahn
Siegfried Heintze wrote: Given the current date, I want to compute the date of the Sunday before. There are a lot of date packages on CPAN. Can someone recommend one that would be well suited for this calculation? $ perl -le'print scalar localtime; print scalar localtime time - 86400 * (

Perpare statements v. Interpolated SQL in DBI/MySQL: Does prepare really help?

2005-06-17 Thread Siegfried Heintze
Does MySQL/DBI really parse SQL statements in advance? I've been using mostly interpolated SQL statements in my screen scraping bot that is implemented with multiple threads and HTML::Parser. As you might now, HTML::Parser calls your code and you have to figure out how to save statement in between