GD::Graph::Bars how to separate bar sets
I am using GD::Graph::Bars to make four bar graphs for each month. I cannot figure out how to separate the sets of bars from each other. As it is, I have 48 vertical bars (4 x 12) all in a row. I want to show some separation between each set of four bars (4 bars for each month). I do not see any settings to make this work, but it seems like an obvious need for bar graphs. This is how it looks now: | etc This is how I want it to look: etc PA Erickson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
writing to a file
Hi I have a very simple cgi script that I have put onto a webserver. I want to write to a log file when it is run. My problem is that the open file command always fails (and I get the openFailed message in my browser). (even if i try opening for input it fails). I have created the file called log.dat in the same folder as the script (cgi-bin) and set attributes to read/write using chmod. Is there any easy way I can find out why the file cant be opened (is it permissions?). Do I need to fully qualify the filepath? if so how do I do that? Is it because I'm not allowed to have log files in the cgi-bin folder? Any help for an absolute beginner appreciated. steve #!/usr/local/bin/perl $Msg = ; if( ! open (LOGFILE, log.dat) ){ $Msg = OpenFailed; } else { $Msg = OpenWorked; #print LOGFILE $Msg; close (LOGFILE) ; } print Content-type: text/html\n\n; print EOF; HTML HEAD TITLEResult/TITLE /HEAD BODY TABLE DIR=LTR BORDER CAPTION$Msg/CAPTION TR TD$Msg/TD /BODY /HTML EOF -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
replacing characters in a string
I cant find a simple perl function to replace characters in a string. Im trying to inserts strings like bob's into a database and need to convert that to bob''s so that sql doesnt whine when i do an insert. Any suggestions? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
Re: replacing characters in a string
- Yes I am using DBI. That's perfect, I didnt realize they had this functionality, but it makes alot of sense that they do. Thank you, thank you. Wiggins D Anconia wrote: I cant find a simple perl function to replace characters in a string. Im trying to inserts strings like bob's into a database and need to convert that to bob''s so that sql doesnt whine when i do an insert. Any suggestions? There are regex's and the tr/y functions/operators? But in this case you shouldn't use either and instead use binding (assuming you are using DBI, are you?). Binding allows DBI/DBD which is very smart decide how the data needs to be quoted rather than attempting to do this manually which usually just leads to problems. http://search.cpan.org/~timb/DBI-1.42/DBI.pm#Placeholders_and_Bind_Values Alternatively if binding can't be used, there is the 'quote' method for handling this specific task (on same page as above). http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response
CGI::Framework?
Where can I find documentation, tutorials, examples for CGI::Framework - the cpan documentation is not enough for me :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CGI::Framework?
Hello! I'm going to write my first perl script and I need Session handling, authentification and a simple cgi application. I tried to use CGI::Framework but I hardly find any documentation about this module except the one at cpan. I tried the example but when I submit from my enterusername htm the Application doesn't call the validate_enterusername like it is told in the documentation. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
show job status
Hi, I have a CGI script that takes some time to finish searching the DB. In the meanwhile, how do I show that the job is being processed? I tried just simple printing the same, but it wouldnt show up until the search is over. I tried using threads with the same result. Thanks. -- P -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]