RE: Turning text array into variables?

2006-12-03 Thread Charles K. Clarkson
print "Answer is : $answer."; __END__ HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/ Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: Convert Date to Timestamp.

2006-11-01 Thread Charles K. Clarkson
t of month, day and year only? Use timegm() from the Time::Local module. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/ Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [

RE: how to make http cgi pages work for https

2006-08-29 Thread Charles K. Clarkson
it looks so much like Funct that it appears to be a typo. Perhaps you should turn warnings on. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: sending HTTP/1.1 202 (Accepted) code

2006-08-01 Thread Charles K. Clarkson
; Looks right, but read section 10.2.3 in the RFC. Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: Multiple filenames in form

2006-07-03 Thread Charles K. Clarkson
Peter Oram wrote: : How can I get the IE behaviour to occur when a user has Firefox? That's a JavaScript problem, not a perl problem. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim

RE: Regex Help.

2006-06-25 Thread Charles K. Clarkson
unction in 'perlfunc'. : $name =~ tr/\0//d; ### replaces zero values to empty In this case \0 is equivalent to ASCII 0 or chr(0). The d modifier deletes matched, but unreplaced characters in $name. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Program

RE: Regex Help.

2006-06-24 Thread Charles K. Clarkson
Sara wrote: : Need help to remove EVERY thing (non-alphabets, symbols, : ASCII codes etc) from a string except for a-zAZ, 0-9, : dash and underscore. : : $string =~ s/?? Read perlop: Quote and Quote-like Operators $string =~ tr/-_a-zA-Z0-9//cd; HTH, Charles K. Clarkson -- Mobile

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in the script. HTH, Charles K. Clarks

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
sfantar wrote: : Here is the script which gave me the error mentioned above : [snip] Everything looks okay there. What's in test.tmpl? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
us the script for more help, but don't bother those people at [EMAIL PROTECTED] This is a CGI problem. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscri

RE: verify if e-mail is returned

2006-04-10 Thread Charles K. Clarkson
: unless I read the maillog on the server. You need a module which reads the maillog on the server. Did you search for a mail module like that at CPAN? Perhaps one that looks for bounced email might do. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscri

RE: hi,how to get the correct statistic

2006-02-21 Thread Charles K. Clarkson
te space characters and missing last line line endings. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- 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 a string containing '+'

2006-02-08 Thread Charles K. Clarkson
t. Try this. It avoids the annoying escapes with character classes and better highlights that stray escape '\'. '^C_and_C[+][+]/[a-zA-Z|_]+$' Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: CGI - HTML::TEMPLATE - How do it ?

2006-02-02 Thread Charles K. Clarkson
7;ll need to test it. @domains = ( { name => 'domain1.com'}, { name => 'domain2.com', subdomains => [ { name => 'www.domain2.com' }, { name => 'foo.domain2.com' }, { name => 'bar.doma

RE: CGI - HTML::TEMPLATE - How do it ?

2006-02-02 Thread Charles K. Clarkson
s.com.br/~aflavio/test.html > That's not a very complicated table. Just 3 rows by six columns. Why is it giving you problems? Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: Wildcards

2005-12-26 Thread Charles K. Clarkson
ial characters to do the work. There are many many people out there who can wreak havoc on your server if you allow it. Beware. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Charles K. Clarkson
;print "$atime"; : =>print "$mtime"; Why are $atime and $mtime in quotes? Read perlfaq4: What's wrong with always quoting "$vars"? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Charles K. Clarkson
open file: $!"; : : open FILE2, ">folder\Perfect.xls" or die "Cannot write to destination : directory: $!"; In perl, directories are separated by "/" not "\". "\P" is an escaped "P". : system ("copy FILE1 FILE

RE: syntax error

2005-12-03 Thread Charles K. Clarkson
$input{$SYSNAME}; : $config{$SYSNAME}=join(/$SEPARATOR/,$sysnamelist); : } elsif ($PageNo==2) HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <ht

RE: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Charles K. Clarkson
Lou Hernsen <mailto:[EMAIL PROTECTED]> wrote: : "Charles K. Clarkson" <[EMAIL PROTECTED]> : : : Lou Hernsen <mailto:[EMAIL PROTECTED]> wrote: : : : : : Bareword "stats" not allowed while "strict subs" in use at : : : C:\WWW\MYSTIC~1\CGI-BIN\TEST

RE: Lou's Code - need a little more help on mod questions.

2005-11-28 Thread Charles K. Clarkson
the lines near line 4359? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: our..... Lou's code ( was: Need help with making a Modules )

2005-11-28 Thread Charles K. Clarkson
"main". If you are not using "strict" you don't need "our". : So if I run the mod as one big ad-in program to main : and not calling subs in the mod, I don't have to pass vars in the : ()'s? stats; : and not : stats::sub($var1, $var2, etc);

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
quot; 1; In your program do this. use lib '.';# Point to the directory where you placed # your module. #use Stats; # This is fine, but use Stats 'Speed'; # this tells you where Speed() come from. . . . Speed(); HT

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
writing creates part of a web page, : so I can print it in the mod or in the main. : (I wold prefer to print it in the mod.. if possible) : : I have been reading for 2 weeks now and can't find a simple working : model to disect that I can understand all the parts of. Give us a mor

RE: implementing links on a system command output

2005-10-21 Thread Charles K. Clarkson
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote: : thx Charles, but your code is something I did knew (sic) already. : I need to implement a link for each H string and I do not see : this??? I assume by "implement a link" you mean that you want to create an HTML ANCHO

RE: implementing links on a system command output

2005-10-21 Thread Charles K. Clarkson
# Don't clobber ARC if it is already open somewhere else. local *ARC; open (ARC, "archiver -v |") or error(); while ( ) { chomp; next unless /\s*(H\d{5})/i; my $h_string = $1; # Do something

RE: implementing links on a system command output

2005-10-20 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : ok here is what I am trying to do. In the atached doc it shows : output from my perl cgi program ... You sent this as a MS Word document. When I open it, Word converts it to a word web view and when I view the code I get a Word trashed htm

RE: implementing links on a system command output

2005-10-18 Thread Charles K. Clarkson
print "$_"; } else { print qq(\n"; } } } } __END__ sf.H02047 capacity: 189.1G space: 117.7G . . . Can you supply us something like that? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 --

RE: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Charles K. Clarkson
hem. : Anyway, this thread wasn't a complete waste. Now I remember why : I always start to use Perl but then abandon it-- great tool, : crappy community. I find the perl community to be a fine one. I have found, though, that I only get from any group what I add to it. If I can only

RE: "if" Question

2005-09-26 Thread Charles K. Clarkson
ted... # ... } } It's important, though, that the subroutine not work on external variables. Variables not passed into the sub. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

RE: problems with CGI.pm upload feature

2005-09-19 Thread Charles K. Clarkson
'attachment', Filename=> param('file_attached'), Encoding=> 'base64', ); Use: Data => [EMAIL PROTECTED], HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Use of uninitialized value

2005-09-14 Thread Charles K. Clarkson
t;; } __END__ This *does* produce an error. #!/usr/bin/perl use strict; use warnings; use CGI qw(:standard), (-unique_headers); my $q = CGI->new(); my $which_import = $q->param('action'); if ($which_import eq 'Import STKvol') { print "foo\n"; } __EN

RE: Use of uninitialized value

2005-09-13 Thread Charles K. Clarkson
Which line is giving you the error? Line 246 is blank. Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Use of uninitialized value

2005-09-13 Thread Charles K. Clarkson
$which_radio_button eq 'All-Clients' ) { viewall(); } elsif ( $which_radio_button eq 'Backup-Tapes' ) { viewbkups(); } sub viewall { # do something; } sub viewbkups { # do something else; } === So there's no advantage to placing the subs in line

RE: CGI.PM and IF statment....

2005-09-10 Thread Charles K. Clarkson
other stuff... : : my $mt = param('message type'); my $mt = param('message_type'); I also don't use white space in option values. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

RE: How to save the state of a CGI script

2005-05-30 Thread Charles K. Clarkson
Ankur Gupta <mailto:[EMAIL PROTECTED]> wrote: : Hi Charles, Hi. : I am fairly new to use the CGI module. So I would like to know : how a cookie would be different from a hidden field. Take a look at this page. It is a general discussion about shopping cart scripts. It gives a

RE: How to save the state of a CGI script

2005-05-30 Thread Charles K. Clarkson
Ankur Gupta <mailto:[EMAIL PROTECTED]> wrote: : Thanks a lot guys for the help. I guess I have to use hidden fields. You could also use a session cookie. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: CGI form Caching problem

2005-05-03 Thread Charles K. Clarkson
xists on IE (PC), Firefox (PX & : Mac) and Safari (Mac) Safari Mac. : : Please, try it yourself. The page is at : http://www.virusbtn.com/subscribe.cgi That came up "Forbidden" when I tried it at 11:27 AM (GMT -6:00) HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-

RE: CGI form Caching problem

2005-05-03 Thread Charles K. Clarkson
g on reload. (I'm not certain, it's been a while since I used IE.) If you are using a modern browser you will need to read its manual. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: [NOVICE] calling perl program within a cgi script with parameters from html form

2005-04-26 Thread Charles K. Clarkson
rous internal perl methods available. Without looking at the script I can't tell much. Show us some example code including the source of test.pl. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: About unoffical HTTP headers

2005-04-26 Thread Charles K. Clarkson
nd found nothing but some standard HTTP : headers like "Accept", "User-Agent", etc.. This is the first I have heard there were unofficial HTTP headers and you have me curious. Why would you want to see these? Are you writing a low level server script? TIA, Charles K. Clar

RE: Preventing CPU spikes / was switch confusion

2005-04-14 Thread Charles K. Clarkson
opendir my $dir, './' or die qq(Cannot open "./": $!); my @filesToRemove = grep {$_ =~ /^(\w[\w.-]*)/} readdir $dir; closedir $dir; my @report; foreach my $file ( @filesToRemove ) { if ( unlink $file ) { push @report, qq(Deleted "$file

RE: valid use of while expression

2005-03-30 Thread Charles K. Clarkson
But these are things you could have tried yourself. So what do you mean by "valid"? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
getting an : error which I don't understand which states that m/^$first_name/ has : an uninitialized variable. Chances are there is a situation where $first_name is not set to a value before it is used. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubs

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
on message emitted by many functions : on failure. Omit the "\n", it suppresses important information. I prefer this idiom. The quotes around the filename have saved me hours. :) open FH, $file or die qq(Cannot open "$file": $!); HTH, Charles K. Clarkson -- Mobile Homes S

RE: Formatting Labels with CGI.pm

2005-03-25 Thread Charles K. Clarkson
pe; { my $flag = $Q->autoEscape(0); @payment_type = $Q->radio_group( -name => 'payment_type', -values => ['PayPal', 'Check'], -default=> 'PayPal',

RE: Module confusion

2005-02-08 Thread Charles K. Clarkson
but disallowing shell access is still the most secure route. Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Extracting links.

2005-01-16 Thread Charles K. Clarkson
hop over to ActiveState. 5.0.6 is a pretty old version of perl. http://www.activestate.com/Products/ActivePerl/ HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.pe

RE: Variables taken from browser "stuck"

2004-11-16 Thread Charles K. Clarkson
ferences > Advanced > Cache : (I was refreshing the browsers whilst holding down the shift to : do a total refresh...) I think that only works on IE. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Variables taken from browser "stuck"

2004-11-15 Thread Charles K. Clarkson
27;t know how to remedy Firefox though. That sounds like a caching problem. Did you clear the browser cache between tries? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: getting files from the internet

2004-10-14 Thread Charles K. Clarkson
ENV{REMOTE_USER} || 'unknown_user'; my $response= HTTP::Response->new( getstore( $url, "/var/www/html/$remote_user/arch.doc" ) ); print "Content-type: text/html\n\n", $response->status_line(); __END__ HTH, Charles K

RE: corrected: foreach to generate parameter calls

2004-10-05 Thread Charles K. Clarkson
def, date_withdrawn => undef, enroll_type => undef, account_number => undef, password=> undef, student_email => undef, mentor_email=> undef, suspended => undef, ); $template->param( \%stud

RE: foreach to generate parameter calls

2004-10-05 Thread Charles K. Clarkson
: . . . : # Assign template parameters : foreach (@info_prams) { What's in @info_prams? How did it get in there? : $tmpl->param( $_ => ("\$$_") ); : } : #$tmpl->param( student_id => $student_id ); : #$tmpl->param( name_full => $name_full

Re: undefined value error

2004-10-02 Thread Charles K. Clarkson
from CPAN. Either provide their source or a url where we can view them. : Note: forwarded message attached. Attaching forwarded messages is annoying. Just post below the pertinent information and delete everything else. Like I did here. HTH, Charles K. Clarkson -- Mobile Homes Specialis

RE: table with variables

2004-09-09 Thread Charles K. Clarkson
Charles K. Clarkson <mailto:[EMAIL PROTECTED]> wrote: : Closer inspection shows the above code doesn't work (right). : I think you wanted this. : : use CGI qw( table Tr td caption ); : : my @items = ( 1 .. 6 ); : print : table( : caption( 'Choose your

RE: table with variables

2004-09-09 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : Charles K. Clarkson [CKC], on Thursday, September 9, 2004 at : 17:37 (-0500) thinks about: : : : : print table( : : {-border=>>undef}, : : : caption('Choose your favourite brand:'), : : : Tr({-alig

RE: table with variables

2004-09-09 Thread Charles K. Clarkson
s[1], $items[2]), : td($items[3], $items[4], $items[5]) : ); : #... : : But how to do that inside while loop? Can I use : table() function, or I have to print it (like : without CGI module)? I don't understand the question. What while loop? What would it be looping over?

RE: CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Charles K. Clarkson
Do you have an example to demonstrate the issue you are having? Are you using CGI.pm to process form fields or another solution? Did you set the "wrap" attribute of the textarea tag? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail:

RE: which modules to use?

2004-09-06 Thread Charles K. Clarkson
for a tem plate package like HTML::Mason or HTML::Template which allows for CGI scripting without embedded markup. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn

RE: How to enumerate array elements?

2004-09-02 Thread Charles K. Clarkson
Sorry, I know its not helpful. I just couldn't resist. :) Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Finding date when a file was created

2004-08-17 Thread Charles K. Clarkson
d and I can't seem to find : out how to do that: The question we need to ask is "Does your file system track File Creation Date?" Many file systems don't. The -C function in perl does /not/ return the file creation time. HTH, Charles K. Clarkson -- Mobile Homes Specialist

RE: How to install packages?

2004-08-13 Thread Charles K. Clarkson
tml in your perl directory. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: beginning question for cgi

2004-07-05 Thread Charles K. Clarkson
ermissions for simple.cgi to 755. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Hijacking forms [was help with adjusting log file data?]

2004-06-13 Thread Charles K. Clarkson
e : already being used (To:, Cc:, and/or Bcc:). This can be : done by putting multiple comma-separated email address : into an email form field, for example. Why have a form on a site that allows people to email anything in the first place? Charles K. Clarkson -- Mobile Homes Specialist 2

RE: multiple images

2004-06-10 Thread Charles K. Clarkson
$q->br() for 1 .. 6; And print it: print $q->header(), $q->start_html( 'Six Random Images' ), @random_images, $q->end_html(); Using it like this forces the browser to do the work. It also gives the web surfer the option

RE: help with adjusting log file data?

2004-06-09 Thread Charles K. Clarkson
From: Catriona Pure Scents <mailto:[EMAIL PROTECTED]> wrote: : Hi Charles, : : thanks immensely. As you can probably tell I am one of those : people who pulled some scripts off the net to get me going, : and insists on making alterations. There is nothing wrong with that. Many peop

RE: multiple images

2004-06-09 Thread Charles K. Clarkson
i tried : the following: : : # foreach( 1..6 ){ : #print "http://127.0.0.1/cgi-bin/five.cgi\";>"; # } : : # but this returns 6 times the same image Well, that makes sense. What are the names of each image? The loop above keeps suing the same name each time. HTH, Charles

RE: help with adjusting log file data?

2004-06-09 Thread Charles K. Clarkson
if length > $max; } my $q = CGI->new(); print $q->header(), $q->start_html( 'env.pl' ), $q->pre( "\n", map { sprintf "%-*s = %s\n", $max, $_, $ENV{ $_ }

RE: help with adjusting log file data?

2004-06-08 Thread Charles K. Clarkson
s bar the first time. The second time, click the again link. When I tried it on my local system (Apache on Windows) I got a referrer only after clicking the link. Notice that the referrer is included in the list when it is defined. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- 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 document my perl code?

2004-06-05 Thread Charles K. Clarkson
erldoc perlpod HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: bad type of variable?

2004-05-14 Thread Charles K. Clarkson
tput: : 7 : 0 / 7 : 1 / 7 : 2 / 7 : 3 / 7 : 4 / 7 : 5 / 7 : 6 / 7 : 7 : 0 / 7 : 1 / 7 : 2 / 7 : 3 / 7 : 4 / 7 : 5 / 7 : 6 / 7 : 7 / 7 HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: how to set env variables?

2004-05-10 Thread Charles K. Clarkson
? That will set the variable across the entire server and is one recommended way. What happened when you tried that? : any suggestion? Show us your code. Let us confirm your reasoning. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail

RE: Displaying Data in a Table

2004-05-08 Thread Charles K. Clarkson
push @rows, Tr( td( [ split ' ', $_, 6 ] ) ); } return table( @rows ); } : Does anyone have any thoughts? Not on a Saturday, no. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL

RE: cgi retaining state (even though I don't want it to)

2004-04-19 Thread Charles K. Clarkson
27;s not being generated from this script. Changing this script will not affect the form. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Getting the values of some variables

2004-04-15 Thread Charles K. Clarkson
t does this (and some more) but it requires delimiters around the variables. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Streaming a file to a remote user

2004-03-30 Thread Charles K. Clarkson
=> (stat $file)[7], -Content_Description=> q|sfryer's file downloader|, ); open OUT, "<$file" or die qq|Cannot open "$file": $!|; binmode OUT if -B $file; my $block_size = (stat OUT)[11] || 16384; while ( my $length = sysread O

RE: Calendar HTML Form

2004-03-29 Thread Charles K. Clarkson
impler is better : than flexible for this. So don't tell anyone you installed something. :) : Any input appreciated If you're just looking for a nice interface to input dates and if you are certain javascript works, take a look at jsCalendar. http://dynarch.com/mishoo/calen

RE: What to use for Perl form Validations?

2004-03-26 Thread Charles K. Clarkson
de and client-side validation. I believe there is also a mailing list for support. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn

RE: hash hanging up browser

2004-03-22 Thread Charles K. Clarkson
est of your code to see what else can be cut. I didn't look through all of it, but as others have pointed out, declaring variables outside the smallest scope possible leads to problems in large scripts. Perhaps others might learn from this. HTH, Charles K. Clarkson -- Mobile Homes Specialist 25

RE: handling multiple select with CGI

2004-03-17 Thread Charles K. Clarkson
my @p = $cgi->param( 'selectname' ); print Dumper [EMAIL PROTECTED]; __END__ selectname=item1 selectname=item2 selectname=item3 prints: $VAR1 = [ 'item1', 'item2', 'item3' ]; HTH, Charles K. Clarkson -- Mobile

RE: running CGI locally??

2004-03-04 Thread Charles K. Clarkson
a web server on your local computer. You haven't mentioned the intended platform. Tell us what that OS is and what OS is no your local box and we can help point you in the right direction. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EM

RE: Webhosting with good Perl support

2004-02-14 Thread Charles K. Clarkson
Try: http://www.tier1services.com/. If you need something cheaper or a special plan, let me know and I'll try to customize a plan just for you. HTH, Charles K. Clarkson -- Mobile Home Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Automated script to connect to a web site and change the Password

2004-01-28 Thread Charles K. Clarkson
email newsgroups asking the same question and then you replied with the same exact message again to each of those messages. In all there are six messages cross posted to two email newsgroups (that I know of) to ask one question. What are thinking??? Charles K. Clarkson -- Head Bottle Washer, Clark

RE: using CGI to build a table

2004-01-26 Thread Charles K. Clarkson
o_addr, str_name_addr, cit_addr FROMs3a_inglewood_project_info WHERE str_name_addr LIKE $user_quoted; |) or err_trap( 'failed to prepare statement\n' ); $sth->execute or err_trap( 'failed to execute statement\n' ); my $array_ref =

RE: using CGI to build a table

2004-01-26 Thread Charles K. Clarkson
=> 0, -width => '25%' }, caption( b( 'Wow. I can multiply!' ) ), Tr( [EMAIL PROTECTED] ), ); } HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 --

RE: using CGI to build a table

2004-01-25 Thread Charles K. Clarkson
print' statement. [snipped sub] HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Tables

2004-01-22 Thread Charles K. Clarkson
Chris Mortimore <[EMAIL PROTECTED]> wrote: : : Charles <[EMAIL PROTECTED]> replies: : > : > I don't really use tables much any longer, but if : > you could send me an example you think is good, I could : > translate from function oriented to OO and clean it up

RE: Tables

2004-01-22 Thread Charles K. Clarkson
but if you could send me an example you think is good, I could translate from function oriented to OO and clean it up a bit. Or you could just send a link. Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-m

RE: Script within a script

2004-01-14 Thread Charles K. Clarkson
of the page as is. This might have the additional benefit of possibly allowing the design to change independent of the content. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

large directory handling

2004-01-05 Thread Charles Harvey
"; } } closedir(@DIR); Thanks! -- Charles F. Harvey [EMAIL PROTECTED] Manager, Help Desk Services Design | Media Arts, UCLA http://support.design.ucla.edu -- 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 Redirection

2003-11-26 Thread Charles K. Clarkson
t depends upon your definition of user intervention. If you show us more code and explain what you are trying to do, I might be of more help. Are you indicating that the code you give above isn't working? HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home

RE: Javascript problems with -script

2003-11-23 Thread Charles K. Clarkson
",screenX=" + left + ",screenY=" + top; myWindow = window.open("", "E-TimOutput", windowFeatures); } //]]> End script hiding --> 3. Generate both: -script => [ $JSCRIPT, { -language => 'JAVASCRIPT',

RE: Hit counter

2003-11-13 Thread Charles K. Clarkson
Version 1.1.1 # Copyright 1996 Matt Wright[EMAIL PROTECTED] # Created 10/27/95 Last Modified 4/25/96 # Scripts Archive at: http://www.scriptarchive.com/ >> HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson E

RE: cgi script not workingI

2003-10-23 Thread Charles K. Clarkson
access to your server's command line, install perl locally on your own computer. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Perl Script in Tables

2003-10-23 Thread Charles K. Clarkson
row( 'text left', 'text right' ), row( 'more text left', 'more text right' ), row( 'still more text left', 'still more text right' ), ); sub row { return Tr( [ td( { -width => '20%&#x

RE: Perl Script in Tables

2003-10-23 Thread Charles K. Clarkson
m module, which is included with the perl distribution, has some excellent examples. You can also read Ovid's course on programming with CGI.pm: http://users.easystreet.com/ovid/cgi_course/ HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Spe

RE: guestbook mySQL / PERL

2003-09-24 Thread Charles K. Clarkson
. Stick to the same style for separating words in your variables and subs throughout the entire program. I prefer using the underscore: run_statement(), not RunStatement(). Whichever you choose, stick to it. And try not to abbreviate When you need help later on, it might be someone who doesn't

RE: File existence under Microsoft IIS

2003-09-06 Thread Charles K. Clarkson
Feed it an absolute path from the web root: $filename = '/images/file.jpg'; if ( exists( $filename ) ) { # # Do something with $filename # } HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubsc

RE: checkbox label font

2003-07-11 Thread Charles K. Clarkson
an.checkbox { font-family:Arial; display:inline; } In the stylesheet (applies to all document languages): span[class=checkbox] { font-family:Arial; display:inline; } Check out http://www.w3.org/TR/REC-CSS2/ for more i

RE: Display timing

2003-07-10 Thread Charles K. Clarkson
he browser. This line is considered insecure once your script goes into production. Welcome to perl, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >