Re: [beginners-cgi] Development environment?

2007-09-20 Thread Shawn Hinchy
transfer to the remote server? Bruce, you said that you use svn/rsync, is it overkill to use rsync to upload a file that I am modifying every couple minutes to the server for testing? Thank you for the help, Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[beginners-cgi] Development environment?

2007-09-19 Thread Shawn Hinchy
between the cgi-bin and html folders. Can anyone recommend one of the other linux development toolsets? Should I be using Kate or KDevelop? Thanks! Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: about CGI

2007-08-16 Thread Mr. Shawn H. Corey
code would help. -- Just my 0.0002 million dollars worth, Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: packing an array of hashes

2007-08-07 Thread Mr. Shawn H. Corey
anonymous hash and populates it with the contents of %hash. It makes a copy of %hash. Of course, if %hash has any references, they will be copied but not their contents. -- Just my 0.0002 million dollars worth, Shawn "For the things we have to learn before we can do them, we lea

Re: Perl/DBI

2007-06-24 Thread Shawn Hinchy
Quoting Tyler Gee <[EMAIL PROTECTED]>: On 6/24/07, Shawn Hinchy <[EMAIL PROTECTED]> wrote: Hello all, I am getting to the point where I need to start thinking about doing pagination for search results. I did some searches and it looks like there are some pagination modules,

Perl/DBI

2007-06-24 Thread Shawn Hinchy
the way I have set up my functions. Are there any other options that I have missed? Suggestions? Thanks, Shawn Shawn Michael Hinchy [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Odd select box behaviour

2007-05-02 Thread Shawn Hinchy
Quoting [EMAIL PROTECTED]: Shawn Hinchy wrote: Quoting Jonathan Mangin <[EMAIL PROTECTED]>: - Original Message - From: "Jonathan Mangin" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2007 9:51 AM Subject: Re: Odd select box

Re: Odd select box behaviour

2007-05-02 Thread Shawn Hinchy
Country ne 'United States') { No, I guess not. Ignore me... It looks to me like you were right, you want to enter the error block when the selected country does not match both cases, not whether you don't match one or the other - that'll always be true. Shawn And, is

Turning text array into variables?

2006-12-03 Thread Shawn Hinchy
ee; print "Answer is : $ans."; I run this but apparently 'my ($array);' doesn't really instantiate the variables. Is there any way to do this? Thanks, Shawn Shawn Michael Hinchy [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Using DBI in a web context

2006-11-14 Thread Shawn Hinchy
That's funny, I just read about this today... See Tim Bunce's tutorial from the Perl 3.0 Conference. I think it will answer some of your questions... Actually I couldn't find it from 99 but here is one from 2004. http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_2004/i

Re: Including a file with common variables...

2006-10-08 Thread Shawn Hinchy
Quoting Ovid <[EMAIL PROTECTED]>: --- Shawn Hinchy <[EMAIL PROTECTED]> wrote: Hello all, I am writing many cgi scripts and need to have the same variables included in each of them. I was going to put all these 'global' variables in a separate file that could then be

Including a file with common variables...

2006-10-07 Thread Shawn Hinchy
x27;; None of these worked. I read the perldoc for each of these functions and 'do' looks like the best candidate but I cannot get it to work. I am sure it is something small I am overlooking. Any suggestions? Thanks, Shawn Shawn Michael Hinchy [EMAIL PROTEC

Re: CGI Scripts and IE

2006-09-25 Thread Shawn Hinchy
Quoting David Dorward <[EMAIL PROTECTED]>: On Mon, Sep 25, 2006 at 10:53:15AM -0400, Shawn Hinchy wrote: Everything works fine in Mozilla/Firefox but when I try to use IE 6, it doesn't seem to call the script when the submit button is pressed, kind of like it knows it is already

CGI Scripts and IE

2006-09-25 Thread Shawn Hinchy
needed. Thanks, Shawn ---- Shawn Michael Hinchy [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: How do I populate a form field based on the value entered in a different field

2006-09-23 Thread Shawn Hinchy
Would you mind sharing the answer? I would assume it would have to be some sort of Javascript, am I wrong? Thanks, Shawn Shawn Michael Hinchy [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
Mr. Shawn H. Corey wrote: > Ibrahim Dawud wrote: > >>Hello, >> >>The following code works great using normal perl but does not work >>under mod_perl: >> Oops, I overlooked the fact that you are using mod_perl. I haven't use it for years but I seem t

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
uch a handler and even if i did, i don't know how to > call it into my existing CGI code in place of $|=1. > > Suggestions are highly appreciated. > > Thanks > $| sets autoflush for the selected filehandle, default is STDOUT. You need only set it once, before any output. See

Re: Regex Help.

2006-06-24 Thread Mr. Shawn H. Corey
character 0x2D. English version: $string =~ s/[^-0-9A-Za-z_]//g; Non-English version: use locale; use POSIX; $string =~ s/[^-[:alnum:]]//g; See: perldoc perlretut perldoc perlre perldoc locale perldoc POSIX -- __END__ Just my 0.0002 million dollars worth, --- Shawn &q

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread Mr. Shawn H. Corey
't use mod_perl in years; someone else will have to answer this. -- __END__ Just my 0.0002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tut

Re: Multiple .cgi scripts vs. one large script

2006-06-14 Thread Mr. Shawn H. Corey
o decide exactly what efficient really means. -- __END__ Just my 0.0002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldo

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 14:45 -0400, Mr. Shawn H. Corey wrote: > Both Storable and Data::Dumper are part of the standard Perl install. > You should already have them on your machine. To check if a module is > already loaded: > > perl -M -e "" > > Replace with

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Mr. Shawn H. Corey
ot;" Replace with the module full name, e.g: perl -MStorable -e "" If the module is not loaded, you will get an error message. -- __END__ Just my 0.0002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them.

Unsubscribing...

2006-01-19 Thread Shawn Hinchy
If you are smart enough to subscribe you should be smart enough to unsubscribe. Just because you are lazy, don't fill our inboxes. Here's some help... http://lists.cpan.org/showlist.cgi?name=beginners-cgi Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: difference web/cli

2005-12-27 Thread Shawn Corey
h for '$<' and '$>'. -- Just my 0.0002 million dollars worth, --- Shawn * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is available at http://perldoc.perl.org/ * Always write your code as though you aren't going to see it * f

Re: indexing... in some way

2005-12-11 Thread Shawn Corey
e with grep does not work? Is this the fastest way? Considering the amount of work this does outside of Perl, no. A shell script would be faster. (But, of course, anything written in Perl is automatically better than everything else ;) -- Just my 0.0002 million dollars worth, --- Sha

Re: uninitialized variable

2005-11-01 Thread Shawn Corey
on eq 'search'; ... }else{ # page for no action ... } -- Just my 0.0002 million dollars worth, --- Shawn "Probability is now one. Any problems that are left are your own." SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_ -- To unsubscribe, e-mail: [

Correct Way to read POST data

2005-08-09 Thread Shawn Devlin
stData contents have the string ';keywords=' in place of any space character. For example, if the user was calling my script and passing 'hello world', $PostData would contain 'hello;keywords=world'. Thanks, Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Ignoring enter/newline in forms

2005-06-03 Thread Shawn Smith
I am attempting to write an interface to a SQL database where the user will be able to scan in serial numbers and such and the database will keep track of it. Unfortunately, the bar code scanners that will be used always add {W at the beginning of what they scan, and a newline at the end. I h

Apache vs Boa error LFLF

2004-09-09 Thread Shawn Sharp
I am working on some perl cgi code that works on an apache webserver but I get the following error when I run it on a boa webserver [08/Sep/2004:23:41:09 +] cgi_header: unable to find LFLF. I have tried the following change From: print "content-type: text/html\n\n"; changed t

Loading an array

2004-09-01 Thread Shawn Sharp
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 the array. Here is a portion of my code. Any ideas 230 my $g =0; 231 for ($g = 0; $g < $m

Loading libraies into static Perl

2004-01-19 Thread Shawn Sharp
Hey, I am trying to create a stand alone (static) program in Perl (no shared libraries). I have tried perlcc -L /lib perl.pl but am not have any luck. This will create an executable but you still need the shared libraries. I have also typing in the path of each library (ie perlcc -L /lib/libp

searching for files using perl

2003-04-01 Thread Shawn Sharp
Can someone help on this one? I created the following code to search for extention .PBD files in the htdocs/PBD folder while using the apache webserver. However it will only search in the cgi-bin folder for these files. What am I doing wrong? #!/perl/bin/perl use warnings; use strict; use CGI

Re: Viruses

2002-07-18 Thread Shawn
s to start appearing on non-MS platforms. Shawn - Original Message - From: "Camilo Gonzalez" <[EMAIL PROTECTED]> To: "'Shawn'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 18, 2002 9:37 AM Subject: RE: Viruses > Antibiot

Re: Viruses

2002-07-18 Thread Shawn
arsh, I guess you could get an antibiotic instead. Norton has seemed to work quite well for the past several years. Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: "tail -f" with cgi

2002-07-12 Thread Shawn
s a File::Tail module. > > But a CGI script isn't designed to be long-running like this. The > web server will eventually time out the request and kill your script. I don't think he was running from the web server, but will the shell time out in the same fashion? Shawn > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: "tail -f" with cgi

2002-07-12 Thread Shawn
s2)=((stat($ARGV[0]))[7],''); for(;;){ do { select(undef,undef,undef,0.25); $s2=(stat($ARGV[0]))[7]; } until($s1!=$s2); $s1=$s2; open(F,"<$ARGV[0]") or die "Can't open $ARGV[0]: $!\n"; my $row; while() { $row++; print "$row: $_"

Re: Ternary Regex Evaluation

2002-07-12 Thread Shawn
the last line of the file...) You are iterating over every line, and constantly replacing $title with each pass... Maybe add this below the $title=m/...: last if($title ne $content); Shawn - Original Message - From: "John Pitchko" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: Accessing Extra Information in die()

2002-07-12 Thread Shawn
> why aren't you using: > > use CGI::Carp 'fatalsToBrowser'; This is VERY limited, and doesn't even catch some signals... The best solution is to build a custom SIG handler that makes reference to the caller function as it is dieing (can be used very nicely w

Re: return =1

2002-06-23 Thread Shawn
Hello Octavian, You need to say return(0) or return(1), not return = 0 or 1. Shawn - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 23, 2002 1:33 AM Subject: return =1 > Hi all, > > If I p

Re: Regular expression again 8P

2002-05-20 Thread Shawn
Basic 893263JHGjhgjhggjghgjh > Referer: http://www.yahoo.com/";; > > I would like to retrieve the line of Proxy Authorization: Basic and > truncate it to only:- To get just the Auth... (my $var2=$var)=~s/^.*Proxy-Authorization: Basic //ms; $var2=~s/\n.*$//ms; This is unetested...

Re: regular expression

2002-05-17 Thread Shawn
rd, $text[$x+2]; push @colour, $text[$x+3]; } for(@name) { print if($_); } exit; It is still way too early, so if you catch any errors, let me know David (or anyone else for that matter) :-) shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regular expression

2002-05-17 Thread Shawn
); it tells me this IS a regex... hence the '//'s. So how exactly is this any less overkill (powerful) than a regex? shawn - Original Message - From: "Scot Robnett" <[EMAIL PROTECTED]> To: "ChaoZ Inferno" <[EMAIL PROTECTED]>; <[EMAIL PROTECTE

Re: regular expression

2002-05-17 Thread Shawn
Hey Chaoz, #!/usr/bin/perl use strict; open(FILE,'); close(FILE); for(@text) { /(d+)$/; # Match only the numbers at the end of the string # and store them in '$1' to be printed out on the # next line followed by a new line character print $1,"\

Re: Passing Arrays In CGI

2002-02-07 Thread Shawn
nd entire array from one CGI Perl program to another CGI > Perl program? > > How would the second program "parse out" the array variables from the > non-array scalar variables? Are you planning on having them go from one cgi script to another via the HTML form, or are you going t

Re: regular expressions

2002-02-07 Thread Shawn
ly ISBN:1565922573 and can be had at bookpool.com for a very reasonable price... Shawn > > Teddy, > My dear email address is [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: splitting a vector... or something like that!?

2002-02-06 Thread Shawn
g files are printed > next to eachother, only separated by a blank space, like this: > > Testfile1 Testfile2 ... > > > The essence of the code is as follows : > > > $testvalue=$value[0]; > > $word = `grep -inlsh $testvalue *`; > > print "The string $testval

Re: SSI errors?

2001-12-15 Thread Shawn
Exactly why not include any params after the include? I do it on several sites right now... You can't include the query string on an exec SSI, but the include virt works just fine. Shawn - Original Message - From: "Omi" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: SSI errors?

2001-12-14 Thread Shawn
Hey Steven, Try this: Then you can pull it from the %ENV hash. Shawn > There is one thing left, and I've tried Omi's suggestion, but I'm not sure > how to capture the name/value pair or parameter in my Perl program. > > How do I capture: > > > -or-

RE: default named parameter values

2001-08-10 Thread shawn
1); It took another pair of eye (co-worker) to raise the question about the padded 2digit number. Hope this may help someone else also. Thanks, -Shawn -Original Message- From: Moon, John [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 11:39 AM To: 'shawn'; perlcg

FW:

2001-08-10 Thread shawn
-Original Message- From: shawn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 10:40 AM To: perlcgi Subject: I'm stuck... -using CGI.pm I've created an "edit" cgi-forms-page to edit values/items in a database. What I want to happen is to have the for

double quotes within a cgi-argument

2001-08-07 Thread shawn
cable). As you know, double quotes end the href string. Question being, how to include a double quote into the href string(s)? Thanks, Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Packages, classes, cgi

2001-07-18 Thread shawn
project to write a cgi/linux/perl/mysql/barcode data-center inventory application and need guidance quick. Can someone point me in the right direction (book or website) to learn the internal workings of packages, classes, objects, etc... Thanks much! Shawn -- To unsubscribe, e-mail: [EMAIL PROT