Re: How to determine content type of a variable

2007-04-19 Thread Bryan R Harris
Terrific, thanks! - B > Yup. Just got this recently. > > ref > > http://perldoc.perl.org/functions/ref.html > > Returns a non-empty string if EXPR is a reference, the empty string > otherwise. If EXPR is not specified, $_ will be used. The value > returned depends on the type of thing the

Re: How to determine content type of a variable

2007-04-19 Thread yitzle
Yup. Just got this recently. ref http://perldoc.perl.org/functions/ref.html Returns a non-empty string if EXPR is a reference, the empty string otherwise. If EXPR is not specified, $_ will be used. The value returned depends on the type of thing the reference is a reference to. Builtin types i

How to determine content type of a variable

2007-04-19 Thread Bryan R Harris
Is there a way to determine whether a variable is a pointer to a hash, pointer to an array, or just a number/string? TIA. - Bryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

all Content-type headers removed and page doesn't throw error

2003-05-27 Thread Motherofperls
I'm having the same header problem as the mark. I removed all the headers and the script still functions, but it doesn't print the cookie header. There is a module for deleting previous headers but I can't remember what it's called. #!C:/Perl/bin/perl.exe BEGIN{open(STDERR, ">./errors/order.

Re: Content-type: text/html

2003-05-27 Thread Mark Martin
one of the scripts has print $cgi->header(); - Original Message - From: "WC -Sx- Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 4:10 PM Subject: Re: Content-type: text/html > are you using > > print header; > &

Re: Content-type: application/x-javascript

2002-11-27 Thread Rob Dixon
Are you sure the lines in your file don't contain double-quotes? These would turn the JavaScript parameter into nonsense. R - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 5:03 PM Subject: Content-type: applica

Content-type: application/x-javascript

2002-11-27 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"</a>;> and test.cgi  has the following code #!/usr/bin/perl print "Content-type: application/x-javascript\n";    print "Pragma: no-cache\n

Re: Content Type

2001-10-19 Thread SAWMaster
> Yes. You did print out the return value, didn't you? The header method of > CGI.pm doesn't print the header out, it returns it; you have to print it out > yourself. No I didn't, I did not know I needed to. It works great now thanks AGAIN! -Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Content Type

2001-10-19 Thread Michael Fowler
On Fri, Oct 19, 2001 at 12:11:31PM -0500, SAWMaster wrote: > $addtocart_co->header(-cookie=>$pid_cookie); > > Does that line not handle the content type as well? Yes. You did print out the return value, didn't you? The header method of CGI.pm doesn't print the heade

Re: Content Type

2001-10-19 Thread Brett W. McCoy
On Fri, 19 Oct 2001, SAWMaster wrote: > Hello, I have a script that is acting funny. > > I have this line in it: > > $addtocart_co->header(-cookie=>$pid_cookie); > > Does that line not handle the content type as well? It does handle it. Do you have start_html after

Content Type

2001-10-19 Thread SAWMaster
Hello, I have a script that is acting funny. I have this line in it: $addtocart_co->header(-cookie=>$pid_cookie); Does that line not handle the content type as well? I get "premature end of script headers" with just that. But if I add this line: print "Content-type

Re: Content-type

2001-06-28 Thread Me
> Im using Content-Type TEXT/PLAIN charset=US-ASCII I think you're missing a colon, and you possibly have other syntax errors. Check on the net for the syntax of the Content-type line.

Content-type

2001-06-28 Thread a
Hi, Im using Content-Type TEXT/PLAIN charset=US-ASCII outlook express understands ok but Email express from icq the headers arrives ok but the body comes: Unknown mime-type detected! Message could not be delivered.