Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-01 Thread Turritopsis Dohrnii Teo En Ming
Subject: Virtualmin and Webmin web hosting control panel are written in Perl 5 Good day from Singapore, I understand that Virtualmin and Webmin web hosting control panel are written in Perl 5. Source: In which perl framework is webmin written into? Link:

I am not sure what list to refer to for my problem

2022-04-28 Thread Olivier
Hello, My problem is definitlively CGI, but not beginner in any form. I have a large CGI script (over 2000 lines), that includes interresting forms, etc. and some calls to openssl ($ret=`openssl x y z`;) The script works fine. I am trying to convert it to run through Joomla (to have a

Re: Perl with Ajax issue

2019-08-13 Thread David Dorward
On 12 Aug 2019, at 19:45, Matt Zand wrote: use CGI; Do read [CGI: CGI.pm has been removed from the Perl core][1] Should I install Perl on the server or does it come with Apache package. Apache HTTPD does not include a Perl distribution although some third-party bundles include both Perl

Perl with Ajax issue

2019-08-12 Thread Matt Zand
I am making Ajax call to Perl page and try to parse data in perl page and return results to html page on my perl page, I have use strict; use warnings; // use JSON; use CGI; my $cgi = CGI->new(); my $string = $cgi->param('sform'); my $json = encode_json( [$string] ); print $cgi->header( -type =>

At wits end CG::unescape

2014-11-25 Thread Patton, Billy N
OS : mac 10.10.1 Yosemite Perl version : 5.16.0 (perlbrew) I have file cp.cgi that is the top level It uses CP.pm which inherits Base.pm which inherits CGI::Application CGI::Application Requires CGI.pm CGI.pm has a use CGI::Util qw(… unescape …); When I try and run cp.cgi I get a timeout. The

Testing my CGI

2014-11-04 Thread Patton, Billy N
I’m using WWW::Mechanize for testing my CGI. I’m having trouble with the $mech-tick Here’s my code : ok($mech-form_name('cdr_format'),getting form cdr_format); print pAllFields = . $mech-value('pAllFields') . \n; 219- ok($mech-tick('pAllFields',1), 'Setting checkbox to native CDR format');

Re: WWW::Mechanize question

2014-11-04 Thread John SJ Anderson
well, are you passing the authentication credentials when you create the LWP useragent? IIRC, there's a whole section in the LWP documentation on HTTP basic auth... (also, you might want to consider taking your questions over to 'beginn...@perl.org' -- not sure there are that many people on this

Re: Testing my CGI

2014-11-04 Thread John SJ Anderson
Look at the source code for the module. The 'tick' method just uses a bare 'return' on success, which means it's going to fail an ok() test regardless of whether or not it works. You may also want to look at Test::WWW::Mechanize. chrs, john. On Tue, Nov 4, 2014 at 7:30 AM, Patton, Billy N

WWW::Mechanize question

2014-11-03 Thread Patton, Billy N
I’ve inherited an app that uses templates. Most of the template contain multiple forms and tables within and buttons within that. The order of the forms I can get from the template, most are not named forms so I have to get them with form_number(#) Question: Can I depend on the form

Re: WWW::Mechanize question

2014-11-03 Thread John SJ Anderson
Hi Billy - Are any of the forms in the templates displayed conditionally? (I.e., are there forms inside IF blocks in the templates.) If not -- if all the forms are always shown -- then yes, the numbers should be stable. My suggestion would be to just add unique identifiers to the forms, because

Re: WWW::Mechanize question

2014-11-03 Thread Patton, Billy N
Thanks, Some times it is conditional, depending on admin rights. But your right I should add a name to each of them, it would make things much easier. Just can’t do it to the current production version. Guess I need to make copy and test that one :) On Nov 3, 2014, at 8:50 AM, John SJ Anderson

Re: WWW::Mechanize question

2014-11-03 Thread Patton, Billy N
I’ve gotten everything copied and working from the Chrome, but when I execute my test script I get : ok 1 - In sub main::login ok 2 -: 49 : Credentials passed ok Error GETing http://cportal-test.dfw0.hypercube-llc.com/html/cp.cgi: Authorization Required at

Re: cgi and inheritance

2014-10-08 Thread jbdetroit
I haven't seen any PErl code with -log- like that before. I've only seen code like that with = error(*). -Original Message- From: Patton, Billy billy.pat...@h3net.com Sent: Oct 6, 2014 9:33 AM To: beginners-cgi@perl.org beginners-cgi@perl.org Subject: cgi and inheritance I’ve recently

cgi and inheritance

2014-10-06 Thread Patton, Billy
I’ve recently inherited some code that hasn’t been touched in over 5 years. It’s all cgi and OOPerl. I’ve ran across this one statement that I don’t understand. $self-log-error(*) I know the self and I’ve traced the error to CGI::Application through inheritance. But it’s the -log- that has me

Re: cgi and inheritance

2014-10-06 Thread John SJ Anderson
On Mon, Oct 6, 2014 at 6:33 AM, Patton, Billy billy.pat...@h3net.com wrote: I’ve recently inherited some code that hasn’t been touched in over 5 years. It’s all cgi and OOPerl. I’ve ran across this one statement that I don’t understand. $self-log-error(*) That's calling the 'error()'

Re: cgi development environment

2012-09-19 Thread David Dorward
On 18 Sep 2012, at 13:34, Chris Stinemetz chrisstinem...@gmail.com wrote: I am very interested in cgi scripting. I have only used php for web development in the past. CGI or Perl? For a long time CGI with Perl was a popular combination so there are a lot of documents which conflate the two.

Re: cgi development environment

2012-09-19 Thread Chris Stinemetz
I have my Perl cgi development environment all set-up. I actually wound up setting up an instance through Amazon AWS. Very cool service by Amazon. I am having issues with my first script and have hopes someone may be able to explain to me whey it isn't working correctly. The error is coming form

Re: cgi development environment

2012-09-19 Thread Mike Williams
On Wed, Sep 19, 2012 at 10:48 PM, Chris Stinemetz chrisstinem...@gmail.comwrote: am having issues with my first script and have hopes someone may be able to explain to me whey it isn't working correctly. The error is coming form line 11 and the error is: Premature end of script headers:

Re: cgi development environment

2012-09-19 Thread Chris Stinemetz
You have a couple other issues. Since you have one print statement, spread over multiple lines, the semi-colons on lines 10 and 11 are bugs. They should be commas. The semi-colons terminate the statement resulting in syntax errors. Mike Thank you. That fixed it. -Chris -- To

Re: cgi development environment

2012-09-19 Thread Shaun Fryer
Also check out http://search.cpan.org/~lds/CGI.pm-3.08/CGI/Carp.pm -- Shaun Fryer -- perl -e 'print chr for map{$_+=22}($ARGV[0])=~/(\d\d)/g' \ 52959394107588899482799210587992861082757785799222

cgi development environment

2012-09-18 Thread Chris Stinemetz
Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? Thank you in advance, Chris -- To unsubscribe, e-mail:

Re: cgi development environment

2012-09-18 Thread Mark Haney
On 09/18/2012 08:34 AM, Chris Stinemetz wrote: Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? Thank you

Re: cgi development environment

2012-09-18 Thread David Christensen
On 09/18/12 05:34, Chris Stinemetz wrote: I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet?

Re: cgi development environment

2012-09-18 Thread Shaun Fryer
Native Win32 Perl: http://strawberryperl.com/ Win32 Linux compat layer: http://www.cygwin.com/ Free virtualization env: https://www.virtualbox.org/ Perl Win32 API bindings: https://www.google.ca/search?q=perl+win32+ole -- Shaun Fryer -- perl

Re: cgi development environment

2012-09-18 Thread Chris Stinemetz
On Tue, Sep 18, 2012 at 5:46 AM, Mark Haney ma...@abemblem.com wrote: On 09/18/2012 08:34 AM, Chris Stinemetz wrote: Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows

Re: cgi development environment

2012-09-18 Thread Shaun Fryer
If you're running Windows and have a decent amount of RAM, try installing vbox and then you should be able to find/follow instructions online to load/install any of the freely available linux iso's downloadable from the distro's website. I'd recommend either Ubuntu or Mint, though your preference

Re: Attach iCal event to an cgi mail

2012-06-11 Thread Peter Scott
After your program has opened SENDMAIL, open it again in the debugger to wherever you want (e.g., open SENDMAIL, 'STDOUT'). Since it's a bareword filehandle, you'll be reopening the same one. On Thu, 07 Jun 2012 12:59:20 -0700, mstep wrote: Yes the Filehandle is opened for writing. Is there

Re: Attach iCal event to an cgi mail

2012-06-08 Thread mstep
Hello Peter! Thank you for your reply! Meanwhile my sendmail is working! Was quite difficult to program it. Yes the Filehandle is opened for writing. Is there any means to look inside? How to redirect the content of SENDMAIL in the debugger? Greetings from Munich - heavy thunderstorm here

Re: Attach iCal event to an cgi mail

2012-06-07 Thread Peter Scott
On Mon, 04 Jun 2012 10:37:35 -0700, Marek wrote: Could somebody please tell me, how can I see into a FILEHANDLE in Perl debugger? I tried with x SENDMAIL but I get only empty array. That filehandle is open for *output* in your program! What is it you want to examine? -- Peter Scott

Attach iCal event to an cgi mail

2012-06-04 Thread Marek
Hello all! I made up a script for a taxi company to order a taxi. Everything is working. I have only problems to attach an iCal event, so that you only have to click on it and it is in your iCalendar. The shortened script for mailing an attached file for the iCal event is doing nothing,

Hi

2012-04-17 Thread Umesh Tiptur
Hi PLZ add me not the list Sent from Yahoo! Mail on Android

Hi

2012-04-02 Thread Umesh Tiptur
Please add me into the mailing list   

Confirm to add to the forum

2012-03-28 Thread Umesh Tiptur
Sent from Yahoo! Mail on Android

Active Perl and ImageMagick

2012-02-18 Thread Skirv
I cant seem to get this module to work at all. I have Windows 7 Pro 64bit, Apache 2.2.14, Active Perl 5.14.2.1402 64 bit Then I installed... ImageMagick-6.7.5-6-Q16-windows-x64-dll.exe I can run perl scripts on my web server fine and dandy, all day long, but If i call use Image::Magick; It gives

problem with passing variables

2011-12-30 Thread Mark Haney
I'm not sure if this is the right list for this, so bear with me. If it isn't I'll be glad to post it on the correct one. I've got a problem with passing variables to a SQL server inside a CGI script. My code is like this: my $begin_time = 2011-11-16 11:00:00; my $end_time = 2011-11-16

Re: problem with passing variables

2011-12-30 Thread nat
Mark, I'm kind of new with perl, but from what I see, you're using a single quote when defining $sql, and it should be qq for the interpolated string. With the single quote (q) it is a literal. Hope this helps. On Friday, December 30, 2011 11:17:30 AM Mark Haney wrote: I'm not sure

Re: need help with a form

2011-11-28 Thread Peter Scott
On Sun, 20 Nov 2011 23:04:28 -0800, Kevin Locke wrote: I need help with getting a form for my church's website to work. Can someone help me with the code to send the information to my email. I would appreciate any input. form id=contact_usquot; class=appnitro method=post action=cgi-

need help with a form

2011-11-21 Thread Kevin Locke
I need help with getting a form for my church's website to work. Can someone help me with the code to send the information to my email. I would appreciate any input. form id=contact_usquot; class=appnitro method=post action=cgi- bin/contact_us.html -- To unsubscribe, e-mail:

Win32 cgi under Apache on Linux [How]

2011-09-26 Thread Al
Hello, I have a win32 executeable which contains a win32 Apache cgi. I want to, if possible get this file to run under Apache on Linux. I think the exe is just a container for the source/compiled files. I ran the exe on a win32 machine and it didnt appear to do anything, no output or errors. So

sending scalar and hash to function

2011-06-27 Thread buzon
I am trying to send an scalar and hash to a function, but is not receiving the value of the hash My code is: dosomething('option',{'extraparam1'='hello'}); function dosomething { ($myopt,%myparams) = @_; print opt = $myopt\n; while( my ($k, $v) = each %myparams ) {

sending scalar and hash to function (note)

2011-06-27 Thread buzon
of course that is sub dosomething but still not working. -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

sending scalar and hash to function [SUMMARY]

2011-06-27 Thread buzon
Found the solution (my apologies). I am receiving both an scalar, the second one as a reference, then it must be assigned to an other var. sub dosomething { ($myopt,$myparams) = @_; %myparams = $myparams; print opt = $myopt\n; while( my ($k, $v) = each %myparams )

Re: sending scalar and hash to function

2011-06-27 Thread Shaun Fryer
In the first code snippit, your function will receive a hash reference, which is a scalar. If you get rid of the curly braces, it will work. Better still would be my ($myopt, $myparams) =@_; ...and... each %$myparams -- Shaun Fryer 1-647-723-2729 On Jun 27, 2011 2:33 PM,

file upload issues!

2011-06-14 Thread Rahul!!
Hi All, Actually I am trying to store the file a user has uploaded through web- page to database. But its not getting updated fully and it's showing only few bytes. Point here is user will upload exe or dll and I have to store it in DB. I am highlighting the code snippet, //WEB PAGE CODE form

file upload issues!

2011-06-14 Thread Rahul!!
Hi All, Actually I am trying to store the file a user has uploaded through web- page to database. But its not getting updated fully and it's showing only few bytes. Point here is user will upload exe or dll and I have to store it in DB. I am highlighting the code snippet, //WEB PAGE CODE form

Debian, Apache, Perl, CGI.pm, ErrorDocument, and POST

2011-04-02 Thread David Christensen
beginners-cgi: I have a Debian 6.0, Apache 2.2.16, Perl 5.10.1, and CGI.pm 3.43 machine with a folder containing: $ cat .htaccess Options +ExecCGI AddHandler cgi-script pl ErrorDocument 404 /cgi.pm-get-post-errordocument/printcgi.pl $ cat index.html html body ul lidirect:

Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-28 Thread Peter Scott
On Sat, 26 Mar 2011 15:56:08 +0100, Przemysław Rejf wrote: My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not

PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Przemysław Rejf
Hi, My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not executed and i get an error in my apache log: [Sat Mar 26

Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Mike Williams
2011/3/26 Przemysław Rejf prze...@rejf.org: Hi, My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not executed and i

Re: when javascript is disabled in browser

2011-03-17 Thread J Alejandro Ceballos Z
Use noscriptJavascript disabled/noscript Atentamente, J. Alejandro Ceballos Z. -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

when javascript is disabled in browser

2011-03-14 Thread Rahul!!
I am new to cgi-perl web development. When javascript is disabled in the browser, how to validate it from the CGI file?? I want to do something like this, if (/javascript is disabled){ print br This webapp needs javascript, please enableable javascript and retry; exit; }else #move on }

Re: when javascript is disabled in browser

2011-03-14 Thread David Christensen
On 03/14/2011 06:25 AM, Rahul!! wrote: I am new to cgi-perl web development. When javascript is disabled in the browser, how to validate it from the CGI file?? I want to do something like this, if (/javascript is disabled){ print br This webapp needs javascript, please enableable

Stuck automating login to reuters.com and getting a page

2011-01-16 Thread Carl Wells
Hi, I hope you don't mind my newbie question. I'm new to web-programming (and indeed am somewhat rusty with programming in general). I'm out of work and trying to teach myself C++, PERL, SQL and other skills and in order to do this I've set myself a project. As part of this project I need

Re: Stuck automating login to reuters.com and getting a page

2011-01-16 Thread Mike Williams
On Sun, Jan 16, 2011 at 7:48 AM, Carl Wells cgrwe...@yahoo.co.uk wrote: Hi, I hope you don't mind my newbie question. I'm new to web-programming (and indeed am somewhat rusty with programming in general). I'm out of work and trying to teach myself C++, PERL, SQL and other skills and in

Re: Stuck automating login to reuters.com and getting a page

2011-01-16 Thread Carl Wells
Thanks Mike.  I thought that might be the case so looks like learning some javascript is in order!  I want to get that data direct from source. Yes, it crossed my mind that sticking with PERL might be easier, I've lost almost 2 months already (I was ill for 3 weeks with flu) and am quite

Re: Stuck automating login to reuters.com and getting a page

2011-01-16 Thread Greg
On Sun, 2011-01-16 at 04:48 -0800, Carl Wells wrote: Hi, I hope you don't mind my newbie question. I'm new to web-programming (and indeed am somewhat rusty with programming in general). I'm out of work and trying to teach myself C++, PERL, SQL and other skills and in order to do this

Re: Perl Courses

2010-12-17 Thread Robert
On 8/21/07 5:11 PM, John Arbes wrote: Does anyone have any recommendations on Perl Courses either online or offline? I'm located in New York but, if a course is good enough, am willing to travel. I'm looking for both beginner and advanced recommendations. Also, please let me know if you have

Where do i begin to learn Perl CGI? (before: Re: Why perl lost steam...)

2010-09-23 Thread Robert Roggenbuck
Hi, it depends how much You know about CGI in general. If you already know the basics about HTML-programming and the principles of CGI just have a look in the very detailed documentation of the Perl CGI module (http://search.cpan.org/~lds/CGI.pm-3.49/lib/CGI.pm). If HTML and CGI are new for

Re: [cgiapp] Why perl lost steam...

2010-09-23 Thread Bill Stephenson
On Sep 22, 2010, at 5:53 PM, Ron Savage wrote: Your preference to hark back to perhaps obsolete software strongly suggests your need to rethink the bases of your decision-making ideas. Probably. Or just get out of the game entirely. But hear me out because this post contains some beginner's

RE: [cgiapp] Why perl lost steam...

2010-09-23 Thread Dermot Paikkos
-Original Message- My interest in peeking at Boulder was really OT, but let me explain a little more about why it intrigues me. It seems to offer some simple ways to search for data in sets of simple data files like those created when using the CGI-save method, almost an SQL like way

RE: Why perl lost steam...

2010-09-22 Thread Dermot Paikkos
-Original Message- From: Bill Stephenson [mailto:bi...@ezinvoice.com] Sent: 20 September 2010 21:40 To: beginners cgI Subject: Why perl lost steam... This email list used to bustle. It was active and vibrant. No more. Now it is practically dead. It would seem that right now,

Re: Why perl lost steam...

2010-09-21 Thread Ask Bjørn Hansen
On 9/20/10 13:39, Bill Stephenson wrote: This email list used to bustle. It was active and vibrant. No more. Now it is practically dead. Looking at job statistics and activity in all the web related Perl projects I think it's more a matter of this list being spectacularly badly named. -

Re: Why perl lost steam...

2010-09-21 Thread Eko Budiharto
hi David, it is true many people are using CMS more often and I think all CMS are using PHP instead of perl. But for me, I am using any kinds that can help me to achieve my goal, not restricted to one technology. I am still using perl for my backend. :) On 9/21/2010 9:46 AM, David Taiaroa

Re: Why perl lost steam...

2010-09-21 Thread Tiberiy Virtgaym
Dear All, Where do i begin to learn Perl CGI? Thank you. Tiberiy Virtgaym Operational Excellence, LS2 Support Deutsche Bank 2 Harbor Side NJ Jersey City 07311 201-593-2355 --

Re: Why perl lost steam...

2010-09-21 Thread Randal L. Schwartz
Eko == Eko Budiharto eko.budiha...@gmail.com writes: Eko it is true many people are using CMS more often and I think all CMS Eko are using PHP instead of perl. You are mistaken. PHP is only one of many viable options for CMS. Perl is another. So are Ruby and Python and [insert any modern

Why perl lost steam...

2010-09-20 Thread Bill Stephenson
This email list used to bustle. It was active and vibrant. No more. Now it is practically dead. It would seem that right now, when Web Apps are really coming into their own, CGI scripts written in Perl would be the place that Beginners would start looking. But there are no beginners here

Re: Why perl lost steam...

2010-09-20 Thread Eko Budiharto
dear Bill, not exactly this mailing list will be dead. It is probably passive for this moment. It is impossible perl will loose from the IT world. If there is no beginners, it is good, right? Because there will be more expert people can help beginners/newbies. :) On 9/21/2010 3:39 AM, Bill

Bls: Why perl lost steam...

2010-09-20 Thread zach
Perhaps, someone who learned about creating a perl-based web application is not 'a beginner', and i guess this type of person will directly choose a framework for completing the work, perhaps 'the newbies will be found at other mailing lists (C:: A or Mojolicious Catalyst) ? Zak,

Re: Why perl lost steam...

2010-09-20 Thread David Taiaroa
Hi Bill, Eko, Interesting question. I find that now I often use PHP and CMS options like Joomla to handle tasks that 10 years ago I would have turned to Perl to solve. Panchroma Website Development Moncton :: Riverview :: Dieppe www.panchroma.ca On Mon, Sep 20, 2010 at 10:50 PM, Eko

Perl CGI

2010-04-30 Thread karthickn sabari
Hi friends, I have some doubts in cgi perl. I want to connect server using perl CGI and i need to receive one txt file in server. Is it possible, then give me the codding. Thanks, Karthick.N

Re: Perl CGI

2010-04-30 Thread Robert Roggenbuck
Use LWP::Simple (not CGI). How to use it is written in the documentation of LWP::Simple. Robert karthickn sabari schrieb: Hi friends, I have some doubts in cgi perl. I want to connect server using perl CGI and i need to receive one txt file in server. Is it possible, then give me

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-26 Thread Raheel Hassan
Hi Shlomi, Sorry for the late response. No problem it was a week end so i was also resting a bit :)) It's pretty old. If you're using it as a desktop, you may wish to upgrade to 2010.0. Yes i am using it on my Desktop. A lot of these can be installed by configuring urpmi to use the contrib

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-26 Thread Shlomi Fish
Hi Raheel, On Monday 26 Apr 2010 11:01:56 Raheel Hassan wrote: Hi Shlomi, Sorry for the late response. No problem it was a week end so i was also resting a bit :)) OK. It's pretty old. If you're using it as a desktop, you may wish to upgrade to 2010.0. Yes i am using it on

Re: button tag?

2010-04-13 Thread Bill Stephenson
On Apr 13, 2010, at 1:00 AM, Fabian Gut wrote: Is this what you want? print $Q-submit(-name='start_button', -label='Start Button'); No, that produces input type=submit... What I want is something like this: buttonfoo/button I look at the source code for the latest version of CGI.pm

button tag?

2010-04-12 Thread Fabian Gut
Hello How do I create a button tag? print $q-button(); creates an input type=button tag and print $q-start_button(); gives an error: Undefined subroutine CGI::start_button Best regards Fabian Gut -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands,

Saving data to %session with Apache::Session::File

2010-03-30 Thread Fabian Gut
Hi I'm using Apache::Session::File for session management. I have a hash in $session{'config'} that saves some config values. I have a script that should change these config values: foreach ( sort keys %newconfig ) { $session{'config'}{$_} = $newconfig{$_}; } this works perfectly for

Re: Saving data to %session with Apache::Session::File

2010-03-30 Thread Brian J. Miller
Fabian Gut wrote: Hi I'm using Apache::Session::File for session management. I have a hash in $session{'config'} that saves some config values. I have a script that should change these config values: foreach ( sort keys %newconfig ) { $session{'config'}{$_} = $newconfig{$_}; } this

Re: 2 off in array count and index

2010-03-22 Thread Rene Schickbauer
jbl wrote: I am reading a directory and creating an array of .png file names. I know for a fact that there are 1025 png files in the folder With $count = @files I get 1027 With $last = $#files I get 1026 $files [0] = . $files[1] = .. . is the current directory, .. is the parent directory.

Re: 2 off in array count and index

2010-03-22 Thread Jay Savage
On Tue, Mar 16, 2010 at 11:47 AM, jbl jbl...@gmail.com wrote: I am reading a directory and creating an array of .png file names. I know for a fact that there are 1025 png files in the folder With $count = @files I get 1027 With $last = $#files I get 1026 $files [0] = . $files[1] = .. I have

Module CAM::PDF

2010-01-13 Thread Naji, Khalid
Hello, The following Script don't work with all PDF-Files. The generated Error is: Can't call method getRootDict on an undefined value at .../perl5/site_perl/5.8.8/CAM/PDF.pm line 3766 The Script use strict; use CGI; my $cgi = new CGI; use CAM::PDF;

Need help with a login script

2010-01-08 Thread Adam Jimerson
I know this topic is beaten to death, and then some, but I was wondering if someone could help me figure out what is wrong with my login script. No matter if I try to login with a valid credentals or not it says that the login has failed. I'm sure it has something to do with the way that I am

Re: Need help with a login script

2010-01-08 Thread Robert Roggenbuck
At first assure that the correct values come from the database (see below). May be that's enough... Greetings Robert Adam Jimerson schrieb: [snip] if (param) { form_verify (@user); print Username: $user[0]\nbr /Password: $user[1]br /\n; #use for debugging my $sth =

Re: Dumping vars from CGI with Data::Dumper

2009-12-31 Thread Brian J. Miller
bu...@alejandro.ceballos.info wrote: I am trying to read the values of all the parameters received in a CGI. But even using a Data::Dumper::Simple module, only the names of the params are displayed, not the name/value relation of each one. use Data::Dumper::Simple; use CGI; print

Dumping vars from CGI with Data::Dumper

2009-12-30 Thread buzon
I am trying to read the values of all the parameters received in a CGI. But even using a Data::Dumper::Simple module, only the names of the params are displayed, not the name/value relation of each one. use Data::Dumper::Simple; use CGI; print Dumper(\...@param); any idea what I am doing

Dumping vars from CGI with Data::Dumper (2)

2009-12-30 Thread J Alejandro Ceballos Z
at the last post, it is print Dumper(param); (without the @) -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: script working from shell, but not from browser.

2009-12-21 Thread alexander simashin
The problem solved now. It is again(for me) selinux. When i disabled it - all began to work fine. It is freaking me out at work, when we began to install linuxe`s with kernel version 2.6(selinux was built in kernel from 2.6) or more i had big problems with this new software... It drives me

Re: script working from shell, but not from browser.

2009-12-20 Thread alexander simashin
Hi Alexander, Since both scripts work on our server, and not yours, all I can think of is that it's something specific to your server environment. I think that too, but can`t understand where is the problem :(. 2009/12/19 David Taiaroa des...@panchroma.ca Does something simple like this

Re: script working from shell, but not from browser.

2009-12-19 Thread David Taiaroa
Hi, When you run a script from shell it's probably as user 'you'. When the script runs from a browser, it will be as user 'www' or something similar, with restricted permissions. Your shell user will have more permissions, so you might want to look at file permissions. Also, you want to check

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
So it is time for an easy example script. i wrote this little example maybe it will be clearly describe my problem. I did not use any files or something for no more possible problems with permissions. *#!/usr/bin/perl use CGI ; use strict; use warnings; use Data::Dumper; use CGI::Carp

script working from shell, but not from browser.

2009-12-18 Thread simas...@gmail.com
so, i got some script with LWP and CGI using. When run this script from shell - everything is ok, i got response with data i need from the site. But, when i run this script from browser i get error 500 - Can't connect to www.something.com:80 (connect: Permission denied). I can`t understand how can

Re: Showing errors with user input

2009-12-10 Thread John W. Krahn
Adam Jimerson wrote: On Dec 7, 12:43 pm, g...@lazymountain.com (Greg Jetter) wrote: On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code,

Re: Showing errors with user input

2009-12-10 Thread Adam Jimerson
Greg Jetter wrote: start by checking the content of @errors inside the print_form sub. with a print statement and exit. Greg Thanks for that, now that is working correctly I guess I didn't need to go through the array like I was trying. -- We must plan for freedom, and not only for

Re: Showing errors with user input

2009-12-09 Thread Adam Jimerson
Greg Jetter wrote: You are trying to use a local scoped var as a global , line 93 $GoodMail is used out of its scope , if ( $user[5] =~ /^([...@\w.]+)$/ ) { $user[5] = $1; eval { my $GoodMail = Email::Valid-address( -address = $user[5], - mxcheck = 1); return; } #push @errors,

Re: Showing errors with user input

2009-12-09 Thread Greg Jetter
On Tuesday 08 December 2009 9:50:57 am Adam Jimerson wrote: On Dec 7, 12:43 pm, g...@lazymountain.com (Greg Jetter) wrote: On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their

Showing errors with user input

2009-12-07 Thread Adam Jimerson
I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code, the first one prints out the form, also takes an array with error descriptions that is passed by the other subroutine. The other subroutine

Re: Showing errors with user input

2009-12-07 Thread Greg Jetter
On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code, the first one prints out the form, also takes an array with error descriptions that

Re: cgi and perl database interaction

2009-12-02 Thread Paweł Prędki
Greg Jetter pisze: On Tuesday 01 December 2009 2:52:38 pm Paweł Prędki wrote: Hello, I have a website that uses a php engine for news generation and, basically, most of the other pages. It uses a MySQL database to store the majority of the page contents (i.e. news). However, I've written

ERROR: malformed header

2009-12-02 Thread Raheel Hassan
HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl, referer:

Re: ERROR: malformed header

2009-12-02 Thread Rene Schickbauer
Raheel Hassan wrote: HI, I have an error in opening one of my perl script, could any one tell me where i look for resolving this problem. This error i looked in the apache error logs. Thanks in advance. * malformed header from script. Bad header=\tPUBLIC -//W3C//DTD XHTML 1.0: dashboard.pl,

Re: Saving param after new recall of a cgi script

2009-12-01 Thread Rene Schickbauer
Marek wrote: Hi! How do I save the parameters from the first input? I tried everything, but there is nothing kept in my array. Do I have to save these parameters into an external file? You could also use Storable Base64 to encode your data structure into a Base64 string. Put this string

  1   2   3   4   5   6   7   8   9   10   >