Stricture and warnings (was Re: problems parsing web form information into a perl script)

2004-03-09 Thread zsdc
warnings; in the beginning. You can always work around warnings and strictures if that is really what you want, but it's useful to be explicit in those cases, unless we're talking about one-liners or little scripts where being too explicit would make them less clear. -- ZSDC Perl and Systems Security

Re: Image Magick problem

2004-03-09 Thread zsdc
then install all at once later after you upgrade perl on your system or anywhere else. See: perldoc CPAN http://search.cpan.org/search?module=CPAN -- ZSDC Perl and Systems Security Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

Re: Stricture and warnings (was Re: problems parsing web form information into a perl script)

2004-03-09 Thread zsdc
(fatalsToBrowser warningsToBrowser); -- ZSDC Perl and Systems Security Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: Problem using hidden variables

2004-03-06 Thread zsdc
have posted, so I suspect that there are much more in your full programs. If you want more help with them, please contact me privately off-list, I might see what I can do. -- ZSDC Perl and Systems Security Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Execute an external script

2004-03-02 Thread zsdc
. Watch out for whitespace. -- ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: matching newline

2004-02-29 Thread zsdc
Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used

Re: matching newline

2004-02-28 Thread zsdc
, like name and address. You might need to write your own handler, but it's very easy. Here's an example from the CGI::Untaint documentation, to match a single digit: package Mysite::CGI::Untaint::digit; use base 'CGI::Untaint::object'; sub _untaint_re { qr/^(\d)$/ } 1; -- ZSDC -- To unsubscribe, e

Re: Problem while searching and printing data from a text file into a HTML page

2004-02-22 Thread zsdc
or ca in its country field. You have to tune it to your own file format. -- ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: cgi mail script anyone?

2003-10-03 Thread zsdc
[EMAIL PROTECTED] wrote: I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). See http://search.cpan.org/modlist/Mail_and_Usenet_News/Mail -- ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Capturing At Compile Time

2003-09-17 Thread zsdc
is not guaranteed to work. The whole codegen suite (perlcc included) should be conĀ­ sidered very experimental. Use for production purposes is strongly discouraged. -- ZSDC Perl Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Counter triggered on download

2003-08-27 Thread zsdc
, but there still is a problem with double dots or slashes in $path. In my opinion the -T switch is a must for CGI scripts. -- ZSDC Perl and Systems Security Consulting -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: file updation

2003-08-25 Thread zsdc
updating the empty columns ? Few weeks ago Kake Pugh wrote an article on Perl.com entitled How to Avoid Writing Code: http://www.perl.com/pub/a/2003/07/15/nocode.html It's about using Class::DBI and the Template Toolkit. It might be exactly what you are looking for. -zsdc. -- To unsubscribe

Re: Counter triggered on download

2003-08-24 Thread zsdc
: print Content-Type: application/pdf\n\n; CGI.pm is great but it's an overkill for just printing HTTP Content-Type header. -zsdc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] Re: [PBML] PLEASE USE [PBML] in your subject line

2003-08-22 Thread zsdc
a good clue that it's somehow related to the [EMAIL PROTECTED] mailing list. (By the way, it's not [EMAIL PROTECTED], but [EMAIL PROTECTED], so your acronym should probably be [PBCML], [BCPML], [BCPOML] or something like that.) -zsdc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Replacing carriage return with character string '\n' coming from a textarea param

2003-08-21 Thread zsdc
can also quote it yourself: http://search.cpan.org/author/TIMB/DBI-1.37/DBI.pm#quote but placeholders are better. -zsdc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: elsif issues ....still

2003-08-21 Thread zsdc
it? Insert: print variable is $variable\n; just before the if. Do you have: use strict; use warnings; in the beginning of your program? -zsdc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: elsif issues ....still

2003-08-21 Thread zsdc
that it works just fine. -zsdc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]