RE: mod_perl and inheritance

2002-07-15 Thread PURMONEN, Joni
own handle) etc. Haven't been able to make the script work properly yet as apache throws errors immediately when I pass the database handle between the classes. Cheers, Joni -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: 09 July 2002 15:00 To: 'PURM

RE: mod_perl and inheritance

2002-07-09 Thread PURMONEN, Joni
> Need to see the script and the error messages. Is Apache::Registry the handler? Yes it is. The error messages just complain about not being able to locate a given method, which should be inherited (and is inherited if I move the script to CGI area). the script runs to couple thousand lines,

mod_perl and inheritance

2002-07-09 Thread PURMONEN, Joni
Hello all, I just moved my perfectly functioning script from normal CGI area to mod_perl area and the whole thing stopped working. This is the first time when I am using multiple classes and inheritance in mod_perl and it seems like the inheritance is the culprit. I tried to search the web for

recommended perl training in UK?

2001-11-13 Thread PURMONEN, Joni
Hi all, This is probably the nices thing one can do at work: my boss asked me to find out good quality perl training for intermediate - advanced perl in UK. After a lot of searching around none of the places i found really convinced. Can anyone recommend any places? Or do I have to fly over the

RE: Off-Topic (200%) - Where are you from?

2001-11-12 Thread PURMONEN, Joni
hey, Yet Another Finn here as well (although currently stuck in Oxford, UK...). Joni -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 November 2001 19:15 To: [EMAIL PROTECTED] Subject: Re: Off-Topic (200%) - Where are you from? On Fri, 9 Nov 2001, Etienne

RE: Command line vs. Application

2001-09-05 Thread PURMONEN, Joni
I had the same kind of problem that the script was ok on the command line, but when it was running as part of a shell scrip which in turn was invoked by cron, it complained that it couldn't find the modules from @INC. Unfortunately I haven't solved this yet so I can't offer any pointers, but coul

RE: regular expressions

2001-07-27 Thread PURMONEN, Joni
I don't think you need to do regex here. I don't have a perl machine here right now so I can just give you pointers: use "split" to get the separate words into strings, then go trough those strings and do ucfirst $string; this will return you the string with first letter uppercased and put them

PDF's on the fly...

2001-07-20 Thread PURMONEN, Joni
Would it be at all possible to create PDF files on the fly using perl? I'm thinking are there any modules which would do the job and does anyone have any experience in using them? Any pointers would be greatly appreciated. I'm running the stuff on solaris 5.6 if that makes a difference... Many

RE: I need to create a module - I think - and don't know how

2001-07-20 Thread PURMONEN, Joni
using a separate module is a good idea in this kind of situation. Put your subroutine to a separate file with the following format: package packagename; sub blaa { code...code...code... } 1; # So that the module will return a true value __END__ Save this as packagename.pm and that's it.

RE: Think there is something DBI

2001-07-18 Thread PURMONEN, Joni
om: borakovej [mailto:[EMAIL PROTECTED]] Sent: 18 July 2001 18:04 To: PURMONEN, Joni; [EMAIL PROTECTED] Subject: Re: Think there is something DBI that would work if it where a little insert but this is what the insert looks like $SQL_UP = qq` Insert into $DB_Table (firstname,lastname,title,ph

RE: Think there is something DBI

2001-07-18 Thread PURMONEN, Joni
yep, couple of ways, placeholders being the best ones. Slurp the data into a string and then $sql = qq(UPDATE whatever SET this = ? WHERE id =?); $sth=$dbh->prepare($sql); $sth->execute($this,$id); This way you do not need to worry about apostroph

RE: CGI.pm and form validation

2001-07-16 Thread PURMONEN, Joni
Would a simple check of refering URL help in this? Something like: my $referer = $ENV{'HTTP_REFERER'}; if ($referer ne "http://www.your/form/location";){ print qq(Content-type: text/html\n\n some error message...); return; } Are there any other relatively simple checks which would help maki

checking groups on unix

2001-06-27 Thread PURMONEN, Joni
Hi ya, I need to check the group status on numerous files/directories, and haven't been able to fing out the best way to do it with perl. I simply need to see if some directories do not have certain group set on them. Can anyone give any pointers? Cheers, Joni Ps. I only have learning perl an

RE: Packages

2001-06-15 Thread PURMONEN, Joni
I always end them with 1; __END__ so the package returns a true value... and package Packagename; to the top. Joni -Original Message- From: Nick Transier [mailto:[EMAIL PROTECTED]] Sent: 15 June 2001 14:41 To: [EMAIL PROTECTED] Subject: Packages Do you have to end packages with a