new html window

2001-10-17 Thread charles
urrent browser to a new page, however, i'm curious to know how i would go about opening a new window to display my generated html. thanks! -charles -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Form send in Post

2002-05-31 Thread charles
I have a Perl script that accesses Post variables from an html page. Does anyone know how I would send this data (POST) from perl rather than generate another html page to send it as hidden input ? Charles -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: What is cat?

2002-06-03 Thread charles
print the contents of a file to the screenfrom a terminal cat [filename] Camilo Gonzalez wrote: > I see the word 'cat' being used an awful lot lately here and have > encountered it in other readings. What is cat and what is it used for? > > #!/usr/local/bin/perl > print <<' EOF' >

Re: First and second rate programmers

2002-06-05 Thread charles
am the cut 'n' paste king of all times. I even have an array of smart key shortcuts on all of my computers. But even still I don't think it would bug me to type in 2 little words :o) Charles PS I am know as the slopiest programmer in the world just for your edufication but I

Re: First and second rate programmers

2002-06-05 Thread charles
cycles could it possibly eat up" when you should really say "why not keep it an option". good practice is to make things available that are not absolutely needed as mobile functions. Charles Jake wrote: > Im a bit worried that a few of my statements have been misconstrued, and

Re: Perl/CGI mysql book

2002-06-05 Thread charles
code that will make it easy. Charles Maureen E Fischer wrote: > I am writing my first CGI application and after analysis of the data > structure that is required I determined that a DBM file would not be > sufficient. Mysql was suggested to me. Unfortunately I could not find >

Re: i/o problem

2002-06-08 Thread charles
I define the REQUEST_METHOD as POST and how do I send these variables back out to another gateway. An example showing the use of STDOUT with an array of variables would be great?? I'm basically trying to do an HTML form SUBMIT without the HTML. Charles -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

testing null strings for form field values

2001-06-04 Thread charles
e think that something is incorrect in my if test. the form itself does not have anything default value specified for view_name. finally, my questions are starting to deal with perl used within cgi. i'm a (brand) newbie to perl. should these questions go to beginners@ or cgi-list@ thanks!! -charles

netscape won't read as html

2001-06-04 Thread charles
hello, i am trying to print out some html in my script and IE and Opera both display the html properly, however netscape will actually display the html as if it were a text doc. i would assume that something would be incorrect in my content-type, but i just don't see it. thanks -charles #

Re: testing null strings for form field values

2001-06-04 Thread charles
honestly, i havent even covered use::strict in my readings yet. i am brand spanking new to the language, however i am indeed running perl with -w. -cjm On Tue, 5 Jun 2001, Hasanuddin Tamir wrote: > On Mon, 4 Jun 2001, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote, > > > if ( $formdata{view_name

if statement printing when it shouldnt :)

2001-06-04 Thread charles
i currently have a form that is generated by the perl script panel.pl within the html, i have: http://localhost/cgi-bin/panel.pl"; method="post"> View the Current List of Aliases also in the html, i have: if ($formdata{view_name}) { $view = $formdata{view_name}; $viewtag = "1"; } and

secure scripts

2001-06-11 Thread charles
anyone have a url that is a decent intro for writing secure cgi scripts? -charles

javascript within print "<

2001-06-12 Thread charles
i have a script that generates html. i would like to put some javascript in the tags which is being generated, but escaping the javascript is a nightmare. does the print "<

Re[2]: The Perl Journal

2001-07-06 Thread charles
yep. my bad. all of my issues came through buying back issues, so i never even bothered to look at the dates. On Fri, 6 Jul 2001, Tim Musson wrote: > Hey Chas, > > Friday, July 06, 2001, 4:24:27 PM, my MUA believes you used > Evolution/0.10.99 (Preview Release) to write: > > CO> On 06 Jul 2001

Re: The Perl Journal

2001-07-06 Thread charles
I hate to be the bearer of possibly bad news, but the Perl Journal will not be returning as a full fledged monthly magazine. I was told today by cmp that it will only be released as a quarterly supplement to subscribers of sysadmin. Granted, I enjoy the thought that it is at least available, but

gui development

2001-09-13 Thread charles
? regards -charles -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem using script as ssi

2001-09-13 Thread charles
i have the following script: #!/usr/bin/perl -w use strict; my $file = /path/to/pancho-unstable"; print ""; open(FH, $file); while() { s/\\\@/@/g; s/>/\>/g; s/"; when i include this script as an ssi through: nothing prints except for the html included in the .shtml file. however, wh

remove me

2002-01-24 Thread Charles Waterman
please remove me from [EMAIL PROTECTED] mailing list.

Problem with cgi scripts

2002-02-08 Thread Charles Waterman
When I try to run a CGI script on my webhost server with "use CGI qw/:standard/;" it does not work. What up with that -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Taking entire Oracle application (forms, reports) to WEB using CGI?

2002-02-28 Thread Brice, Charles
Hi All I also am interested in this question. 1 What are the security issues using CGI? 2 Are there any source code examples of applications available for examination? Thanks Charles -Original Message- From: Bruce Ambraal [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28

CGI Connection and Test Select

2002-03-01 Thread Brice, Charles
Hi All Please Help! ** I am new to CGI and Perl. I am trying to test a connect to the database and execute a select against the TAB table. The connect is hard coded for now. I am able to pass the values in but I have not tried to us

perl

2002-03-17 Thread Charles Fletcher
i'm a beginner were do we start, lol, please let me know ok.. thank you very much.. charles

Perl DATABASE Forms

2002-03-22 Thread Brice, Charles
hips using multiple tables. One form can be used to perform the QUERY, UPDATE, DELETE, and INSERT functions. Can any one point me to a "HOW TO", or information, or an existing application available for examination that demonstrates these capabilities using Perl on the Web? Thanks f

RE: Perl DATABASE Forms

2002-03-22 Thread Brice, Charles
Hi David I am new to Perl. Our sys admin has Apache installed and is setting up for us to use Perl, DBI, CGI. Thanks for responding Charles -Original Message- From: David Kirol [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:40 PM To: Brice, Charles Subject: RE: Perl

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: 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: 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: 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: 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
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-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: 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: 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: 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: 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 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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-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: 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: "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: 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: 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: 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-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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: br -- problem caused by "Package"?

2003-06-07 Thread Charles K. Clarkson
horthand for 'Brtest::br'. So 'br' must be a bareword which is not allowed under strict. 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: Subroutine Syntax

2003-06-15 Thread Charles K. Clarkson
#x27;t end with ';'. : and another syntax error at if($_[0]=1){ This is because warnings is on (see above). 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: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Charles K. Clarkson
. Are both of these questions moot because :I should use -w while developing the cgi, :but remove it before actual use? There is some debate whether removing warnings is such a good thing. In a cgi program, warnings go to the server logs and might foretell a problem. I prefer using the m

RE: Problem with script headers.

2003-06-17 Thread Charles K. Clarkson
de for index.cgi with the confidential parts changed such that it still generates the error. Telling us about the code and about how paranoid you are about your security won't aid us in solving your problem. Scot's right, we need the code. HTH, Charles K. Clarkson -- He

RE: Adding data to file

2003-06-18 Thread Charles K. Clarkson
ot;; print sort @file; close FH; You can read more about perl data structures in perldsc. 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]

  1   2   >