Best Practices for Debugging and Error Handling in CGI Scripts?

2002-08-15 Thread David Simcik
Can anyone list some resources or methods they use for debugging (Perl) CGI scripts. How can I use CGI::Carp most effectively? Does anyone have any recommended practices for graceful CGI error handling? Is this something that should be built in a custom module for my site? Sorry if these are "so

Net::SMTP Question

2002-04-11 Thread David Simcik
I've been experiencing a weird behavior lately with one of my messaging scripts. I keep on seeing msg recipients getting BCC'd a copy of the msg, in addition to their listing in the To: field. I have no idea why, but it seems to have something to do with the "hard" ->recipient method call - but wh

A Model for Perl-driven HTML/WML/XML Front-Ends???

2002-01-03 Thread David Simcik
Hello out there! I am currently trying to piece together a personal site for myself using Perl, MySQL, and Apache (alas, no mod_perl yet). I would like to seamlessly deliver content to both HTML and WML browsers, perhaps even going as far as deploying SOAP or XML-RPC as well (the differenc

References vs. Pointers???

2001-09-25 Thread David Simcik
Hello, This is a newbie question if there ever was one, but what is the difference between a (Perl) reference and a (C/C++ style) pointer??? The only thing that seems immediately obvious is that C/C++ pointers are strongly typed...??? Hmmm. DTS -- To unsubscribe, e-mail: [EMAIL PROTEC

Security Mechanisms with Perl/Apache on an Hosted Website???

2001-09-25 Thread David Simcik
Hey folks, I'm trying to cobble together some form of authentication mechanism on a website I am building for a friend. His ISP uses Perl & Apache (it's on a linux box). I (obviously) don't have root priviledges and have limited access to the filesystem. What are my options (if any)??? I t

RE: any lists for perl for NT/W2K admin?

2001-09-19 Thread David Simcik
Check out the ActiveState lists beginning here: http://aspn.activestate.com/ASPN/Mail/ (I just went looking for this info yesterday, in fact ;-) -Original Message- From: Edouard Beaugard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 3:30 PM To: [EMAIL PROTECTED] Subjec

XML sections ?

2001-09-19 Thread David Simcik
Hi! A little off-topic I know, but since I'm using Perl for the script, well... ;-) Anyways, I have an XML document and I want to use (whatever its type is actually called) to keep some content from being parsed by the parser. Problem is, I keep on getting error messages like this "The m

Win32::NetAdmin::UserCreate() Problems!

2001-09-18 Thread David Simcik
Hello again, I'm working with ActiveState Perl and am trying to make use of a Win32 call to create new users. I'm not having much success. Every time my sub runs it returns this error: "Overlapped I/O operation is in progress". I am using the function Win32::NetAdmin::UserCreate(). I setup

RegExp Problem...

2001-09-18 Thread David Simcik
Hi folks, I'm stumped...I wrote a test script and this pattern matches just fine, but when I try to use it in another script it does match as it should. Basically, if the pattern detects an _ underscore in the string it should return undef; if it doesn't match it returns true. Here's some

Problem Building Module...

2001-09-17 Thread David Simcik
Hi all, Trying to build XML-XPath.pm. I keep on getting this error when I run make (Win 2000, recent ActiveState Perl Build): Makefile:740: *** missing separator. Stop. I'm hoping it's a silly problem, but I'm pretty clueless when it comes to Make. Thanks! DTS -- To unsubscribe, e-m

Win32::FileSecurity::Set() Woes

2001-09-14 Thread David Simcik
Hey folks, To sum things up, I've got two servers: one in an NT Domain and one not in an NT Domain. I would like to set NTFS permissions on shared directories residing on the server in the NT Domain using a Perl/CGI script running off of the other server without a domain. Big Problem. I've

A Framework for Building An WML/HTML Application Using Perl???

2001-09-10 Thread David Simcik
Hey all, I'm trying to modify an existing script that searches a test file for what one could qualify as normal phonebook style entries; name, phone #, email addy, etc. We've got an internal presentation coming up in two weeks, and my boss would like to WAP-ify this directory for it. That

Access Denied When Trying to Create Directory?

2001-09-04 Thread David Simcik
Hey all, I'm simply trying to create a directory on a mapped (remote) drive from a CGI script using the mkdir() function. I keep on getting "Access Denied" errors or the like every time I try to create a new directory. What do I need to do to assign the proper rights to my script so it can

Searching for Particular XML Element Values???

2001-08-22 Thread David Simcik
Hey folks, I'm working on a simple app that doesn't allow for any true DB persistent storage/access of data. I only need a small amount of data access anyways, but I would like to structure it a bit via XML/DTD. What I'd REALLY like to do is have the ability to search the entire XML docume

Checking for Directory Existence

2001-08-16 Thread David Simcik
Hey folks, This would seem to be a trivial thing, but I can't find a great answer anywhere for it. I want to do a mkdir, but before I do, I want to confirm that the dir I'm about to make doesn't already exist. Would the -X operators (particularily -e) work with DIRHANDLES??? That would ce

Passing Scalar Reference to Subroutine

2001-08-16 Thread David Simcik
Newbie question here... I've created a CGI.pm object and want to pass its reference to a function. It keeps on puking though, returning this message: Type of arg 1 to main::isPresent must be scalar (not single ref constructor) at C:\src\Orion\cgi-bin\share.pl line 45, near "$user)" Basically, I

Best Practices: Error Handling???

2001-08-14 Thread David Simcik
I've been perusing the Camel book, the Cookbook, CGI Programming w/Perl, and Effective Perl for answers to this question, but have yet to find one or two definitive solutions. I've seen the standard die/eval() statements and the use of the various incarnations of Carp, but I have yet to see anyone

Perl and Date Handling

2001-07-30 Thread David Simcik
Hey folks, I'm about to embark on some serious beginner date manipulation and I was wondering if anybody had ANY pointers about handling dates. I'm specifically interested in working with the different date formats DD/MM/, MM/DD/, Dec 12 2000, etc. etc. What about working with the

Gzip on Win32

2001-06-28 Thread David Simcik
Hey, I'm hoping this will be a straighforward question...I'm assuming I need a command-line interface GZip utility to work with the MCPAN installation utility??? Where can I find one? Thanks. DTS

Perl Boilerplate???

2001-06-28 Thread David Simcik
Hey, I, like the rest of you, am always looking for ways to make my life more convenient. Especially when coding. To this end, I am looking to fashion a well-rounded template doc that I can use in Homesite (where I do most of my work right now) made up of the essential pieces I'd expect to