Re: [Perl-unix-users] Another Question

2001-09-29 Thread Simon Oliver
Sounds like you want client-side PerlScript. As far as I know that is only available for IE under Windows. I guess the simplest method would be to submit the FORM to the validation script via CGI and have that script either return an error or use a redirection header to forward the request on

Re: [Perl-unix-users] Setting env vars in hp-ux

2001-10-18 Thread Simon Oliver
I would put this in a BEGIN block to make certain that the variables are set before any other code is executed. BEGIN { $ENV{UNIX95} = "XPG4"; } -- Simon Oliver ___ Perl-Unix-Users mailing list. To unsubscribe g

Re: [Perl-unix-users] GD-Graph makes zero-size gif instead of png.

2002-01-28 Thread Simon Oliver
ing useful. Look at the source to GD.pm: sub GD::gif { croak("GIF support has been disabled for legal reasons. Use PNG or JPEG output"); } Your script should have died with the above error after calling $gd->gif. -- Simon Oliver ___ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Re: [Perl-unix-users] Sessions with Perl in Apache

2002-03-21 Thread Simon Oliver
Boris Villazon wrote: > > Does anybody knows how can I manage sessions on Perl over Apache? > Without mod_perl try CGI-SecureState.ppd With mod_perl use Apache::Session or Apache::ASP -- Simon Oliver ___ Perl-Unix-Users mailing li

Re: [Perl-unix-users] perl questions

2002-03-25 Thread Simon Oliver
This might not be the most efficient method but it should work... $URL = $ENV{'HTTP_POST'}; $URL =~ s/www\.//; $URL = lc($URL); -- Simon Oliver Johnno wrote: > > Hello, > > What i am wanting to do is the following... > > $URL = $ENV{'HTTP_HOST'} ; &

Re: [Perl-unix-users] Changing values

2002-04-23 Thread Simon Oliver
u need any amount of white space to be a single underscore: $value =~ s/\s+/_/g; See perldoc perlop and perldoc perlre -- Simon Oliver ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] Session Timeout in CGI

2002-06-12 Thread Simon Oliver
ut if the system is idle for abt 30 mins. > I guess you are manageing your own sessions via cookies? You need to resend (overwrite) the cookie on each access with a new expiry value of +30M. -- Simon Oliver ___ Perl-Unix-Users mailing list

Re: [Perl-unix-users] "in" operator?

2003-03-11 Thread Simon Oliver
ECTED])) { print($var); } sub in { my ($var, $array_ref) = @_; my $count; for (@$array_ref) { $count++ if $var eq $_; } return $count; } -- Simon Oliver ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] "in" operator?

2003-03-11 Thread Simon Oliver
Simon Oliver wrote: EXTERN Chakirov Timour (TZ CIS; DS/ESQ3) wrote: Hello, I know it's a dummy question, however I could not find a quick answer in perl documentation. So my question: is any form of "logical-IN" operator in perl? I.e. I have a scalar $var and a list @colors =

Re: [Perl-unix-users] mysql ping on DBI

2003-03-19 Thread Simon Oliver
DBI itself - see the section on Subclassing the DBI in the DBI man page. The following thread discusses how/why DBIx-AnyDBD was integrated into the DBI: http://archive.develooper.com/[EMAIL PROTECTED]/msg00586.html If you need more help I suggest you try the [EMAIL PROTECTED] mailing list.