Re: using Content-type: application/x-javascript

2002-11-26 Thread Wiggins d'Anconia
What does the source of the page say? Everything looks correct in your perl, but it sounds as if the problems are client side which would indicate that whatever is in mytext.dat is not correct javascript. Verify that the source matches the mytext.dat code, and then double check that that code a

using Content-type: application/x-javascript

2002-11-26 Thread Ambrose007
okay here is the thing, i have found this really neat piece of code when I add http://www.mydomain.com/cgi-bin/test.cgi";> and test.cgi has the following code #!/usr/bin/perl print "Content-type: application/x-javascript\n"; print "Pragma: no-cache\n\n"; print "document.writeln(\"tes

Re: Strict and variables

2002-11-26 Thread WilliamGunther
In a message dated 11/26/2002 5:08:23 PM Eastern Standard Time, [EMAIL PROTECTED] writes: > Using "my $FORM{'changeaddress'}" doesnt work It's a hash. Use my %FORM;

Strict and variables

2002-11-26 Thread Fred Sahakian
Hello, Im working a program and trying to get the pragma 'strict' to work. I cant define a variable though, Im stuck, any ideas? my $changeaddress = $FORM{'changeaddress'}; I keep getting an error on the $FORM Using "my $FORM{'changeaddress'}" doesnt work. what is the correct way to handle

Re: Restart Apache

2002-11-26 Thread Chris Devers
On Tue, 26 Nov 2002, Jeremy Schwartz wrote: > I am trying to rotate my Apache logs using Cron and the following shell > script: > > # /bin/sh > > mv /var/log/httpd/access_log /users/admin/logs/ > apachectl restart As noted, full paths might be a good idea. That or, this being a Perl list [well, t

[Solved] Re: Restart Apache

2002-11-26 Thread Jeremy Schwartz
That did it! Thanks Gene and everyone who chimed in on this. It was the full path on apachectl that was causing the issue. This works great for anyone looking for an easy solution to roll your logs. #!/bin/sh mv /var/log/httpd/access_log /users/admin/logs/ /usr/sbin/apachectl restart -

Re: Restart Apache

2002-11-26 Thread Dwalu Z. Khasu
On Tue, 26 Nov 2002, Jeremy Schwartz wrote: =>I am trying to rotate my Apache logs using Cron and the following shell =>script: => =># /bin/sh => =>mv /var/log/httpd/access_log /users/admin/logs/ =>apachectl restart => =>This script is set to 755 and is being executed by the root crontab. The =>fi

Re: Restart Apache

2002-11-26 Thread gene
On Tuesday, November 26, 2002, at 11:55 AM, Jeremy Schwartz wrote: I am trying to rotate my Apache logs using Cron and the following shell script: # /bin/sh mv /var/log/httpd/access_log /users/admin/logs/ apachectl restart This script is set to 755 and is being executed by the root crontab.

RE: Restart Apache

2002-11-26 Thread Neil Lathwood
Jeremy Schwartz wrote > but apache is not restarting. What does your apache error log file say? Neil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Restart Apache

2002-11-26 Thread Jeremy Schwartz
I am trying to rotate my Apache logs using Cron and the following shell script: # /bin/sh mv /var/log/httpd/access_log /users/admin/logs/ apachectl restart This script is set to 755 and is being executed by the root crontab. The first line is executing correctly, the log file is moving out of /v

Re: stylesheets

2002-11-26 Thread Octavian Rasnita
A correct line for including style sheets is: Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Ramon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 8:04 PM Subject: stylesheets Hi, I am trying to put style

Re: tutorials

2002-11-26 Thread Octavian Rasnita
For an absolute beginner a bad explanation code looks like this: open (FILE, ">$file") or die "Can't write to $file - $!"; It would be more simple to tell them: open (FILE, ">$file"); Then they will understand more easy about how easy is to open a file for writing. After that you can tell abou

RE: stylesheets

2002-11-26 Thread Ramon
nevermind, just found it, doh! thanks anyway -style=>{-src=>'http://www.capricorn.com/style/st1.css' -Original Message- From: Ramon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: stylesheets Hi, I am trying to put stylesheet info int

stylesheets

2002-11-26 Thread Ramon
Hi, I am trying to put stylesheet info into the header of my document. What is the correct syntax? (I am trying to refer to a .css file) Thanks. -Original Message- From: Ovid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 8:10 AM To: Octavian Rasnita; [EMAIL PROTECTED]; [EMAI

Re: tutorials

2002-11-26 Thread Ovid
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Yes, but a good tutorial for beginners doesn't include all the advanced > things. Yes. > It should be the simplest possible. Yes. > It should be not fully correct for all the cases but simple to understand. Yes. But it should not be wrong. T

Re: Question about wantarray()

2002-11-26 Thread drieux
On Tuesday, Nov 26, 2002, at 06:35 US/Pacific, Mystik Gotan wrote: I can't really figure out what the purpose of wantarray() is. Can someone please give me a good, decent explanation? Thanks in advance :-) my $scalar = funk(@args); my @array = funk(@args); if you use return wantarray ? @a

RE: Question about wantarray()

2002-11-26 Thread wiggins
Well there is the obvious place to start (perldoc -f wantarray): wantarray Returns true if the context of the currently executing subroutine is looking for a list value. Returns false if the context is looking for a scalar. Returns the unde

Question about wantarray()

2002-11-26 Thread Mystik Gotan
I can't really figure out what the purpose of wantarray() is. Can someone please give me a good, decent explanation? Thanks in advance :-) -- Bob Erinkveld (Webmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] ___