Re: Include Files in Perl?

2004-02-13 Thread Wiggins d'Anconia
Charlie somerville wrote: Yeah, that looks pretty good "Alexander Blüm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] that doesn't sound too good. sounds like loading all into memory, split it up into arrays and then finally printing the contents to the browser. bleh! how aout this:

Re: Alternative to Storable

2004-02-13 Thread Wiggins d'Anconia
Jan Eden wrote: zentara wrote: I will check this out. My ISP is really cheap, though, but more and more it looks like being too cheap. ;) Cheap and inexpensive are two different things, especially in the land of hosting. zentara's looks like a pretty good deal, I will also suggest Westhost (do

Re: compile error

2004-02-14 Thread Wiggins d'Anconia
Rick Triplett wrote: Help -- I'm getting the following compile error: Can't declare scalar assignment in my at /big/dom/xlibertylearning/cgi-bin/reader_writer.cgi line 12, near ");" The offending code is ... #!/usr/bin/perl -w use strict; use DB_File; # module for Berkeley DBM w/ DB_HASH file type

Re: OT: Webhosting with good Perl support

2004-02-14 Thread Wiggins d'Anconia
Frank DeLaTorre wrote: bob, yep that helps me a ton, thanks...honestly! Dang, now I'm wondering if I should wipe Debian GNU/linux off the HDD and put OpenBSD...this is an Ultra10 so I may not be able to find a port... Are we talking a home box or a server? Randal's original point was security,

Re: Webhosting with good Perl support

2004-02-14 Thread Wiggins d'Anconia
Casey West wrote: It was Saturday, February 14, 2004 when Robert took the soap box, saying: : Casey West wrote: : : >It was Saturday, February 14, 2004 when Jan Eden took the soap box, saying: : >: Hi all, : >: : >: Does anyone have an additional recommendation, so I can compare : >: some more? :

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I'm creating my own module to handle sessions and other stuff for my site: package Skyline; use Apache::DBI; use Apache::Cookie; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('check_login', 'init_db', '$dbh'); @EXPORT = ('check_login', 'init_db', '$dbh'); our $dbh; sub ch

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
Andrew Gaffney wrote: Andrew Gaffney wrote: sub init_db { $dbh = DBI->connect("DBI:mysql:database=skyline;host=192.168.254.25", "root", "linux", {'RaiseError' => 1}); } And before anyone gets on me about posting DB passwords, keep in mind this is on a test server not connected to the intern

Re: help with perl setup...and upgrade

2004-02-24 Thread Wiggins d'Anconia
Catriona Pure Scents wrote: Hi guys, many moons ago when I was a complete novice on perl...(only a little more advance now, but at least I have some scripts running and modifying them as need be..) I had a version of perl that ran on my pc as though it were a web servernot through the command

Re: problems parsing web form information into a perl script

2004-03-07 Thread Wiggins d'Anconia
Mark Martin wrote: Hi, I've got a web form that allows a user to browse to an excel file on their computer and input it and the year as parameters to run a perl script FORM : SCRIPT: use strict; # always use warnings;# usually use CGI; use Spreadsheet::ParseExcel; $q=new CGI; my $oExcel = new

Re: General question about HTML form

2004-03-20 Thread Wiggins d'Anconia
WC -Sx- Jones wrote: Bill Tribley wrote: CGI was written from the beginning to not compromise > the security of the box on which it runs. Just because a module is secure doesn't mean the resulting application is. Correct, but I think Bill was specifically meaning 'CGI.pm' is secure so you don't

Re: Regex Help!

2004-03-21 Thread Wiggins d'Anconia
Sara wrote: I am looking for a regex which would extract the intials from a string i.e. str = "Doe, John L.L.M"; $str =~ /(^(\w)).*?((\s)(\w)).*?((\s)(\w))/; $initial = $1.$2.$3; print "$initial"; The above code is not serving my purpose. String constants: There would be always 3 words (obviou

GD Install Failure (was: Re: elsif issues ....still)

2004-03-26 Thread Wiggins d'Anconia
Please start a new thread when posting (and bottom post when replying)... Allen Wang wrote: When I was trying to install GDGraph-1.43 It failed due to the following message " Warning: prerequisite GD failed to load: Can't load '/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0/auto/GD/GD.sl' for module G

Re: GD Install Failure (was: Re: elsif issues ....still)

2004-03-26 Thread Wiggins d'Anconia
Please bottom post... Allen Wang wrote: The first error message should be " Warning: prerequisite GD failed to load: Can't load '/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0/auto/GD/GD.sl' for module GD: No such file or directory at /opt/perl5/lib/5.6.0/PA-RISC2.0/DynaLoader.pm line 200. at

Re: Apache::Session question

2004-03-26 Thread Wiggins d'Anconia
B. Fongo wrote: My implementation of Apache::Session::MySQL dies along the way, and gives unclear warning. [error] Died at /usr/lib/perl5/site_perl/5.8.0/Apache/Session/Generate/MD5.pm line 40. I decided to implement session as a module call Store::Session, so as to minimize recoding it in many s

Re: GD Install Failure (was: Re: elsif issues ....still)

2004-03-29 Thread Wiggins d'Anconia
Allen Wang wrote: -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 6:11 PM To: Allen Wang Cc: [EMAIL PROTECTED] Subject: Re: GD Install Failure (was: Re: elsif issues still) Please bottom post... Allen Wang wrote: The first

Re: CGI module comparison

2004-03-29 Thread Wiggins d'Anconia
Andrew Gaffney wrote: John Goodleaf wrote: Hello, I'm not on the list, so please CC me directly. Although I'm a reasonably competent Perl user I have never actually used it for CGI purposes, just for database querying/data munging. You can imagine my perpetual confusion at finding the Perl books i

Re: Active 'back' buttons

2004-03-29 Thread Wiggins d'Anconia
Rob Dixon wrote: Hi guys. What's the 'usual' way (if there is one) of implementing an 'active' back button (which does the equivalent of the browser's back button but is implemented in CGI code)? If, say, I'm doing a database search and come up with a list of records, each of which can be clicked

Re: AW: Apache::Session question

2004-03-29 Thread Wiggins d'Anconia
Please bottom post... B. Fongo wrote: The error occurs on initial call, so id should be empty be then. I expect the routine to open a new session (see code below) if session_id is empty - but it fails then. == my $dbh = dbConnect(); # Get value

Re: html form output

2004-03-31 Thread Wiggins d'Anconia
Alex Maceda wrote: I have a from processing script that I am trying to modify to spit out another html form, minus text boxes. My question is can I somehow use the name portion of the POST request as a variable to have the value portion print in it's proper location? ie. I get a colon separated

Re: interactive perl programing

2004-03-31 Thread Wiggins d'Anconia
rob lester wrote: I'm stumped on where to look but there must be a module to handle interactive programming. What I mean is printing out a list of things, the user selects what he wants, hits enter and the program continues. I presume the module would enable going back to change things and handl

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread Wiggins d'Anconia
B McKee wrote: Yeah, ok, this isn't completely on topic. Please humour me (or at least flame me politely). I need to redirect people to a perl-CGI script I have written a perl script that generates a series of active web pages. It's in the cgi-bin and works fine when accessed directly eg:

Re: Problems declaring variables in external packages

2004-04-18 Thread Wiggins d'Anconia
Richard Heintze wrote: I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join("", map { qq[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the value of undef is confirmed.

OT: Re: Fwd: Interview Questions

2004-04-20 Thread Wiggins d'Anconia
drieux wrote: This has what to do with CGI? [..] Sorry forgot to toggle off the 'bitterness' flag, apparently I have been at this way to long. Wiggins, think about the idea for a moment, what if it were you first time in the barrel as the guy who had to do the interviewing of

Re: Displaying Data in a Table

2004-05-08 Thread Wiggins d'Anconia
Baek, Steve wrote: Fellow Perl-Mongers: I'm trying to break apart the command `df -k` data and display it into an html table: Filesystemkbytesused avail capacity Mounted on /dev/dsk/c0t2d0s03008783 83669 2864939 3%/ /dev/dsk/c0t2d0s34032654 886633 31056952

Re: Array Question

2004-05-14 Thread Wiggins d'Anconia
Luinrandir Hernsen wrote: Can I do something like this? perldoc -q quoting @CityA="Suburb1, Suburb2, Suburb3"; @CityB="Suburb1, Suburb4, Suburb5"; I don't think the above is doing what you think it is. It is assigning one element (the first) of the array to a string. If you are trying to assi

Re: OT: sockets

2004-04-30 Thread Wiggins d'Anconia
Frank DeLaTorre wrote: All, Is there a perl "sockets" list I can get a hold of ? You mean mailing list? Many mailing lists, are listed here: http://lists.perl.org/ I didn't see one specifically for sockets. If you have socket related questions they wouldn't be off topic for the beginners list

Re: Form mailer and environment variables

2004-04-30 Thread Wiggins d'Anconia
Jan Eden wrote: Hi all, I wrote a little form mail script and start by setting the environment variables like this: BEGIN { $ENV{PATH} = "/usr/sbin"; delete @ENV{ qw( IFS CDPATH ENV BASH_ENV) }; } Now the actual directory (.) is obviously not searched anymore, since my $page_head = eval

OT: mysql vs. postgresql (was: Re: CGI and mySQL book, any recommendation.)

2004-06-01 Thread Wiggins d Anconia
> >>>>> "Wiggins" == Wiggins D'Anconia <[EMAIL PROTECTED]> writes: > > Wiggins> Agreed. I have requested this from him before, but didn't get much. > > I haven't responded because I've been using the net at 40 cents per > mi

Re: POST method with perl module

2004-06-04 Thread Wiggins d Anconia
> Good morning, > > im trying to set up a tools module for my modperl environment. > My function get_vars should get all passed variables with the following > snipplet: > > if($ENV{'REQUEST_METHOD'} eq "GET"){ > $my_data = $ENV{'QUERY_STRING'}; > } > else { > $data_length = $ENV{'CONTENT_L

RE: How do I document my perl code?

2004-06-07 Thread Wiggins d Anconia
> Is there any standard for documenting functions? > For example, in Javadoc, there is a specific format > that uses the "@" for identifying and formating the > function argruments. It looks like POD much more > freeform and is not nearly so detailed. Is that true? > Siegfried > > P.S. Sorry C

Re: Printing a multipart HTML output

2004-06-08 Thread Wiggins d Anconia
> Hi all, > > Please tell me how can I create a multipart html file that includes html > text and images. > I know that Mime::Lite can create such a thing for sending an email with > attachments, but I don't know if it is possible to use it for creating > common HTML pages with multipart content.

Re: POST and GET and CGI.pm

2004-06-08 Thread Wiggins d Anconia
> Greetings, > > While reading some of the Perl newsgroups, I've seen a few examples of > people getting CGI parameters by either parsing the query-string (for GETs) > or reading in some of the content (for POSTs). I've been working with CGI > (using Perl) for a little while now and I've always us

Re: Printing a multipart HTML output

2004-06-09 Thread Wiggins d Anconia
essary to send more files to the clients. > But I was sure that if Outlook Express can read such a page, Internet Explorer and other browsers will be able to read it for sure. > > Thanks. > > Teddy > > - Original Message - > From: "Wiggins d Anconia" <[EM

Re: Current Value

2004-06-10 Thread Wiggins d Anconia
> Hi, > > When Im looping through as cgi that loops through records in a table, I do > a print statement of a variable. > Example > > if($condition eq "G") > { >print $field1; > } > > why does it print all the occurances of the fields in the table, as only > one of them fits the criteria o

Re: joining form input in parser

2004-06-11 Thread Wiggins d Anconia
> HI > > Any help will be greatly appreciated. > > The below statement is my parsing statement. It may be antiquated but it > works. If it does then you wouldn't need to ask right? It is antiquated, very, and shouldn't be used when there are much better ways to do this, specifically the CGI mod

Re: joining form input in parser

2004-06-11 Thread Wiggins d Anconia
nderstand your reply. > Next time. don't bother. > > ## > - Original Message - > From: "Wiggins D Anconia" <[EMAIL PROTECTED]> > Newsgroups: perl.beginners.cgi > To: "William Kolln" <[EMAIL PROTECTED]>; &

Re: Writable dirs

2004-06-15 Thread Wiggins d Anconia
> Hi, > > a friend of mine uses a certain directory to upload files to. This directory has write permissions for all, since his cgi script has to store the files in it. > This is a common myth. The directory only has to have the permissions it needs, how much control you have over the directory a

Re: Can't coerce array into hash at - error

2004-06-17 Thread Wiggins d Anconia
> Hi All, > > I am trying to fill a popup_menu with values retrieved from my database > and get the following error. Can't coerce array into hash at. As this is > the first time I'm doing this, could someone please assist in telling me > where I'm going wrong. 'at' what? That would help. Per

Re: popup_menu

2004-06-24 Thread Wiggins d Anconia
> Hi All, > > Any idea how to disable a popup_menu? > This is client side, javascript or XForms. See the 'disabled' attribute, but this will be highly browser dependent. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unexpected CGI and HTML

2004-06-24 Thread Wiggins d Anconia
> I have an odd result (at least to me) that I can't explain. I am using > CGI::Application and have the following subroutine that returns $output, the > html for the page (only a toy example, but illustrates the point, I think): > > sub return_probe_details { > # Get OligoMap object (actually,

Re: popup_menu

2004-06-25 Thread Wiggins d Anconia
> Hi have the following code: > > print popup_menu(-name=>'hosts',-values=>['1','2','3'],-default=>['2']); > > the default value doen not seem to appear, any reason why? > > Regards > Otto > Does not appear or is not selected? I couldn't reproduce the former, the latter is because you are pro

Re: Mailing Script

2004-07-08 Thread Wiggins d Anconia
> Gunnar Hjalmarsson wrote: > > > Werner Otto wrote: > > > >> Gunnar Hjalmarsson wrote: > >> > >>> > >>> Add this line at the top of the script: > >>> > >>> use CGI::Carp 'fatalsToBrowser'; > >> > >> > >> The permissions on running.pdf was not correct. It helps if you > >> know how to debug! >

Re: Mailing Script

2004-07-08 Thread Wiggins d Anconia
> Wiggins d Anconia wrote: > > > > > > When I include warnings and strict is give me allot of warnings. What do > they mean? > > Software error: > Global symbol "$surname" requires explicit package name > at ola.cgi line 15. > ola.cgi

Re: please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread Wiggins d Anconia
> Hi all, > > I have received the respond from the Apache stated that: > > "The server encountered an internal error and was unable to complete your request. > > Error message: > Premature end of script headers: testing.cgi > > If you think this is a server error, please contact the webmaste

Re: Fwd: Re: how to call an application in cgi and let it run in web browser

2004-07-12 Thread Wiggins d Anconia
> Xiangli Zhang wrote: > > Aha, are you trying to open the vi editor? Then I don't think I'm able > to help you; not sure if it's even possible to do that from a CGI script. > > > main page"test.pl" [readonly] 6L, > > 95C#!/usr/bin/perl -w print "Content-Type: tex

Re: CPU load/server resources.

2004-07-13 Thread Wiggins d Anconia
> > I had a script for which my previous host cancelled my account saying it's a resource hog and using more than 50% resources of the server (shared hosting). > > Yep, there were some faults in the script. I modified it and they restored the account. > > But now I am looking for some script/sub

Re: CPU load/server resources.

2004-07-14 Thread Wiggins d Anconia
> On Tue, 13 Jul 2004 15:30:36 -0600 > "Wiggins d Anconia" <[EMAIL PROTECTED]> wrote: > > > > > > > I had a script for which my previous host cancelled my account > > > saying > > it's a resource hog and using more than 50% resour

Re: File upload question

2004-07-27 Thread Wiggins d Anconia
> On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > > if ($q->param('upload_file')) { > > my $fh=$q->upload('upload_file'); >^^ > > Perhaps that should be param, not upload. I'm not familiar with an > upload method in the CGI module. > > Please check the docs,

Re: A question on Radio buttons in the CGI::Form package

2004-07-27 Thread Wiggins d Anconia
> Hi, > >I am trying to generate radio buttons using the CGI::Form package. > My radio buttons need to be vertically aligned with some other HTML > elements in between them. For e.g. > >Radio 1 > >Radio 2 > >This obviously precludes me from using the 'radio_group' method as

Re: GD.pm and GD::Graph

2004-08-04 Thread Wiggins d Anconia
> > > Hello. > > Could someone could shed some light what I should do. Please point me if > I should send to a different list. > > Although my script ran fine on the command line. I've got the following > errors when running my script on apache > > [Tue Aug 03 15:54:14 2004] [error] [clien

Re: GD.pm and GD::Graph

2004-08-04 Thread Wiggins d Anconia
dssdev192464 Jul 28 16:18 libpng12.a > lrwxrwxrwx 1 dssweb dssdev19 Jul 28 16:18 libpng12.so -> > libpng12.so.0.1.2.5 > lrwxrwxrwx 1 dssweb dssdev 19 Jul 28 16:18 libpng12.so.0 -> > libpng12.so.0.1.2.5 > -rwxr-xr-x 1 dssweb dssdev170116 Jul 28 16

Re: stuck at TRUE/FALSE, pls help

2004-08-16 Thread Wiggins d Anconia
> > Hi > > I am very very new to perl. And after lots of work I did script a perl > file to handle a online form (products order form). However, I am > stuck at a point. I tried my best but could not get thru. > > The form is located at: http://www.kevincoffey.com/order.htm > > When I select a

Re: Upload file not working

2004-08-17 Thread Wiggins d Anconia
> Hi all, > > Hoping you guys can provide me some place to start troubleshooting. Here's the situation. I have created a file upload form which then just prints the contents of the file out. Basically just copied the CPAN instructions for testing purposes. > > I am able to do this successfully on

Re: Finding date when a file was created

2004-08-20 Thread Wiggins d Anconia
> On Aug 19, 2004, at 1:58 PM, Randal L. Schwartz wrote: > > > The founding fathers of Unix deliberately left out "creation time" > > because the concept is ambiguous at best. There's some discussion on > > it in the classic materials about the early years of Unix. > > > > And I agree with the lo

Re: Storing Larges Chunks of Text or graphics in web applications

2004-08-25 Thread Wiggins d Anconia
> > I inherited a perl CGI application that uses the integer primary key in the > Microsoft Access database fabricate as the file name of flat text file to > hold arbitrary amounts of text. It just dawned on me that this is a bad > idea! If we compress the database, all those unique integer keys

Re: Cookie Security

2004-08-31 Thread Wiggins d Anconia
> On Tue, Aug 31, 2004 at 08:30:35AM -0600, Siegfried Heintze wrote: > > My client has had me implement some very proprietary algorithms. He wants > > to charge his clients money every time someone requests these calculations > > be preformed on their very sensitive. > > > > > > > > In additio

Re: Need help on Chinese registration form

2004-08-31 Thread Wiggins d Anconia
> > I am working on the Chinese registration form, first time I do that, but > have a lot of questions. > > 1) The user will type in Chinese character, simple, on my form but how will > I know if I am capturing the Chinese character correctly so that I can save > to a flat file. > 2) The submitte

Re: ODBC

2004-09-01 Thread Wiggins d Anconia
> > > > I have a CGI program in which I am trying to access a database. When I run the code in active state feeding it the input from the form it runs fine. When I try to run it as a cgi from IE using Apache web server the data from the form comes in fine but it can not seem to attach to the dat

Re: Loading an array

2004-09-01 Thread Wiggins d Anconia
Your question may be better asked on [EMAIL PROTECTED] since it isn't really CGI related. > > I need some help, I am running this code to load values into the > $ArrayofCompareHex [$g] array. Currently it is not working. The > $comparevalue gets the correct value but the value is not past into

Re: Cookies v. Hiddent Fields

2004-09-01 Thread Wiggins d Anconia
> > What is the difference (as far as security goes) between using a cookie and > a hidden field? Are hidden fields cached if we are using SSL? I think not. > > None. Both are wide open. SSL simply encrypts the "pipe" between your server and the client (browser). Everything passing over it, inc

RE: perl moudules for Primer Design

2004-09-13 Thread Wiggins d Anconia
> Dear all; >Could anybody give me some directions or suggestions that are there any perl Modules for primer design developed and povided? > > Thanks in advance > Jian > Not sure what this has to do with CGI, and I don't really know if you are speaking of the bio related "primer design" but

Re: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Wiggins d Anconia
Please only post to one group, if that group does not yield a good answer, then try a different one. Especially since this has nothing to do with CGI. > Can anyone tell me why this code fails when trying to load > Some_Module_In_lib_Dir- > == > my $file_path = > substr

RE: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Wiggins d Anconia
> > > -Original Message- > > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 16, 2004 9:03 AM > > To: Ron Goral; Perl Beginners; [EMAIL PROTECTED] > > Subject: Re: Need some help using lib to add custom directories to @IN

Re: session ids?

2004-09-22 Thread Wiggins d Anconia
> > > I'm still very much a beginner, but I'm starting to see how establishing a > concept of sessions could be quite handy for my website. So I was thinking > of coming up with session ids, which could be some encoded combination of > their ip address, user name, and the date/time of that sessi

Re: Need a little help with a sub.

2004-10-14 Thread Wiggins d Anconia
> I am calling a sub with: > > &Navigate(%modules, %settings); > Drop the C<&> until you know what it is for. > And reading it like: > > sub Navigate { > (%modules, %settings) = @_; > Perl flattens lists automagically, so when it sees your C<%modules, %settings> it flattens it to on

Re: Problem with flock

2004-09-27 Thread Wiggins d Anconia
> Variations on the following code snippet have run successfully before, > but now the compiler halts with the complaint > " Bareword "LOCK_EX" not allowed while "strict subs" in use at > student_info_viewer.cgi line 47" > Can someone help me see what I am overlooking? > You haven't shown us you

Re: Authenticate users

2004-09-29 Thread Wiggins d Anconia
> Does anyone know if there is any easy way to authenticate users and > securely maintain a session? Or is it up to me to create a database, and > a session cookie? > > Thanks in advance, > > Paul This is a very FAQ, check the archives of this list. You might also want to look at the popular CGI

Re: HTML::Template still choking

2004-09-29 Thread Wiggins d Anconia
> HTML::Template is still choking, giving the error... > > HTML::Template->new() : Syntax error in tag at /XXX[here I'm > ommiting the path]/data/templates/student_info.tmpl : 13. at > /usr/local/lib/perl5/site_perl/5.005/HTML/Template.pm line 2243. > > I now think the fault is in my Perl co

Re: template re HTML::Template choking

2004-09-29 Thread Wiggins d Anconia
> Here is the template: > > student_id = The above line does not have a "NAME" attribute which I think is required. And should the "VALUE" be "DEFAULT"?? HTH, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: moving files

2004-09-29 Thread Wiggins d Anconia
Make sure to group reply so that others can help and be helped (and to avoid getting accidentally ignored)...please bottom post... > OK, here is what I have so far > > use CGI; > use LWP::Simple; > $URL = "http://www.jeffherbeck.com/arch.doc";; > $remote_user = $ENV{REMOTE_USER}; > > getstore($U

Re: Files -read write - an epiphany and question

2004-10-18 Thread Wiggins d Anconia
This doesn't have anything to do with CGI so would be better directed to [EMAIL PROTECTED] instead > > I have been studying W/R to files... > W/R to a string and to an array. > and I must say I think I have it. > > I can read a file into an array IF i wrote the file using "\n" between vars,

Re: reading in a CVS file

2004-11-02 Thread Wiggins d Anconia
> Hello, > > I am trying to do an import of a Tab De-limited file and then > extract certain fields. > This has what to do with CGI? Your question is better asked to [EMAIL PROTECTED] > I am looking to general comments and or a better more concise way of doing this, > Thanks in advance... >

Re: What exactly does "$| = 1;" do?

2004-11-30 Thread Wiggins d Anconia
> I have seen in a few scripts now, including some of the articles that Mr. > Schwartz has written. I have read it does something with the buffers but on > a more technical level what is that? > > Robert > Since this is a general Perl question not related to CGI it is better asked to [EMAIL P

Re: embedding dynamic images in html output

2005-01-21 Thread Wiggins d Anconia
> 11:03am, Chad Gard wrote: > > > > > On Jan 21, 2005, at 10:22 AM, Sean Davis wrote: > > > >> You could also have your main script generate the images all at once (at > >> the same time as you are generating the HTML), put the graphics in temp > >> files, and then put the appropriate URLs in th

Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
For beginners non-cgi issues, there is also the '[EMAIL PROTECTED]' list. Just for your info > While this is being used in a cgi, it's really more of a general perl > question. But I'm hoping I can get some help. > > I have a hash which has arrays of arrays as the value for each key: > $tab

Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
For beginners non-cgi issues, there is also the '[EMAIL PROTECTED]' list. Just for your info > While this is being used in a cgi, it's really more of a general perl > question. But I'm hoping I can get some help. > > I have a hash which has arrays of arrays as the value for each key: > $tab

Re: accessing array of arrays in a hash

2003-10-23 Thread Wiggins d Anconia
Disregard this first message my web based mail client was acting up, the other message is much more informative, sorry, http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: unlink help.

2003-10-29 Thread Wiggins d Anconia
> > unlink <*.bak>; > > how I am supposed to specify directory above? > > for example I have to apply above unlink command to delete all backup files in the Specified directory. > > $dir = /home/path/to/dir > > is it right? > > unlink <$dir/*.bak>; > > ?? > > Any ideas? > The <> operato

Re: Only working with parameters

2003-10-31 Thread Wiggins d Anconia
> > I created a CGI that returns an txt code (to display a banner), but what > it looks strange to me is that if I call it with only one parameter > (type of code to return, and associated variable) it works fine, but if > I use an other parameter, it sends me an error message. > > This wor

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> Hi, > I am trying to do this: > > for( $i = 0; $i < 5; $i++) { > $qty[$i] = $q->param('qty$i'); > } > I could say $q->qty0; > $q->qty1; > | > | > | > $q->qty4; > > and be done with it. That works. But I would

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > } > > I could say $q->qty0; > > $q->qty1; > > | > > | > > | > > $q->qty4; > > > > and be done with it. T

Re: interpolating a variable with a request parameter

2003-10-31 Thread Wiggins d Anconia
> > On Friday, Oct 31, 2003, at 10:01 US/Pacific, radhika sambamurti wrote: > > > Hi, > > I am trying to do this: > > > > for( $i = 0; $i < 5; $i++) { > > $qty[$i] = $q->param('qty$i'); > > what you are probably finding is that > > $qty[0] eq 'qty$i' > > since you used the sing

Re: Can't locate GD.pm in @INC...

2003-11-03 Thread Wiggins d Anconia
> Hi, > > I'm trying to use GD.pm on a RedHat 9.0 Linux machine in a Perl script. > When the script is executed, it drops out with the message: > > Can't locate GD.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i

Re: Content-Length and printing

2003-11-03 Thread Wiggins d Anconia
> > I am facing a problem here. > > I am writing a script which will produce HTML output for printing. > > I want to introduce "page-break" after a specified "Content-Length" and then it continues printing the remaining input. > > Lets suppose after every 130 characters (supposing a 65 charac

Re: Form field named as array elements

2003-11-14 Thread Wiggins d Anconia
> > Hi all, > > I need to present a series of database fields for users to update and when > the form is submitted I need to be able to retrieve not only the field > values but the original row ID's as well so I'll know which table rows to > update. > > What I'd like to be able do is name the

RE: Form field named as array elements

2003-11-14 Thread Wiggins d Anconia
> Works like a charm, thanks! Guess I was trying to make it to difficult. I > must've done something wrong, though... I had to alter the code a bit to > make it work. It seemed that grabbing all the params tossed the param values > and I had to go back and get 'em once I had the key isolated. >

Re: Cookie Paths

2003-11-19 Thread Wiggins d Anconia
> If I create a cookie with path '/' does that mean it will be available > for all web pages on my site, or will it instead be only available to > web pages in the / directory? > > Thanks in advance, > Most often a question like this is best answered through experimentation, fire up two script

Re: msql + cgi form parse error

2003-11-21 Thread Wiggins d Anconia
> If someone could point me in the right direction... > I have a form on a system I am maintaining that works fine most of the > time, but sporadically spits out an error. Users hit the back button, > only to find that the data they had filled in is no longer in the form > (but sometimes it st

Re: Storing Form Data without submitting it.

2003-11-26 Thread Wiggins d Anconia
> > Hi everybody, > > I' m not sure this is the right list to ask this kind of question but I don't know where else. We are using html forms to insert and update news articles (texts) stored in a mysql database. Ever so often one of our journalists forgets to press the submit button or his com

Re: Redirecting to a different url with cgi

2003-11-26 Thread Wiggins d Anconia
> > What is the perl code to redirect to a new url, in cgi. All I need is to > execute a perl script and when its done to redirect the clients browser to a > new location. > I am running Windows 2000 and IIS. > > If you are using CGI.pm then it has a 'redirect' method: http://search.cpan.o

Re: reading from address bar

2003-12-01 Thread Wiggins d Anconia
> Hi, > Any ideas is it possible to read the address bar through perl alone? > Thanks, > Mark. What "address bar"?? My snail mail box has an address bar, that one? Remember we are not mind readers and your question doesn't make a lot of sense outside the context of your own head. Assuming you

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
> On Tue, 02 Dec 2003 10:43:08 -0800, [EMAIL PROTECTED] (Greg Zartman) > wrote: > > > > >I'm relatively inexperienced at using this module as I've always > >preferred coding my own cgi functions. A question: > > > >If one were to use the CGI::Safe CGI subclass to turn-off uploads, does > >thi

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
> > This is one of the things CGI::Safe does, it is really just a wrapper > > around CGI.pm but it allows you to do it without having to edit the > > source, or to set it in every script, which is actually pretty nice. > > Yes, inspection of the CGI::Safe source indeed shows this. Bottom line,

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
> > What resources are you concerned about? It appears most of CGI.pm is > > autoloaded at first usage, which should help matters of CPU and memory > > usage. > > Maybe this is just my inexperience showing here, but I was under the > impression that when you attached a module (i.e. use CGI.pm

Re: Beta Testing a Robot

2003-12-04 Thread Wiggins d Anconia
> It was Wednesday, December 03, 2003 when Casey West took the soap box, saying: > : I'm beta-testing a robot that searches Google when new questions are > : posed to the beginners' lists. I have no idea if it will be useful. > : :-) > > I should like to make an important note. This bot is not

Re: Fork

2003-12-08 Thread Wiggins d Anconia
> Hi all, > > Please tell me how could I fork more child processes. > I want to fork let's say 10 child processes. > > I know that I can do something like the following, but I am wondering if > there is a clearer method: > > if (my $pid = fork) { > #parent > > if(my $pid2 = fork) { > #parent

Re: Calling JavaScript from Perl

2003-12-08 Thread Wiggins d Anconia
> Hi, > Does anyone know is it possible to call javascript from perl? Can > javascript be included in the same page? Can anyone provide an example of > this? > Thanks in advance, > Mark. How do you mean "call javascript from Perl"? In general Javascript is a client side language that executes w

OT: RE: Running Apache behind LinkSys Router

2003-12-18 Thread Wiggins d Anconia
> > Hi everyone, > I don't know if this is the right group to ask this but I have been > trying to access my website outside of my router but have been unable > to do so. > > I've tried Port Forwarding, changed some settings in http.conf. My > site can be accessed at foobar.homelinux.com(for exa

Re: using crontab

2004-01-13 Thread Wiggins d Anconia
> Hi all, > > Does anyone know what line I neet to print after using the > > crontab -e > > command, in order to run a program every half an hour, at 0 minutes and at > 30 minutes? > Your line will need to be of the form: 0,30 * * * * /path/to/command That says run at 0 and 30 minutes of eve

Re: CGI.pm *with* a templating system?

2004-01-13 Thread Wiggins d Anconia
> Hi List, > > Is it possible to use CGI.pm in conjunction with a templating system? > > For example, I'd like to send the header from CGI.pm, but use a > templating system for the bulk of the page. And which templating system > do users here recommend. I've heard of Template::Toolkit and > HTML:

<    1   2   3   4   5   >