CGI header() and print question

2003-06-23 Thread Dan Muey
I think this is ok but I want to make sure I'm not missing some obvious thing. If I do some headers with print and then do a CGI header(), that will work ok right? IE: use CGI qw(:standard); print "Set-Cookie: $c\n"; print header(); ... OR use CGI qw(:standard); print "Set-Cookie: $c\n"; prin

Re: Function Calls are Slower - was Re: Print Question

2002-04-06 Thread Jonathan E. Paton
> > > > Function calls in Perl are dead slow compared > > > > to compiled languages. > > > > > > Ok, so why is this? > > > > > > > Implementation and little optimization. > > > > Perl has a complex function calling mechanism, as > > it flattens argument lists by pushing elements onto > > the s

Re: Function Calls are Slower - was Re: Print Question

2002-04-06 Thread Jenda Krynicky
From: "Jonathan E. Paton" <[EMAIL PROTECTED]> > > > Function calls in Perl are dead slow compared > > > to compiled languages. > > > > Ok, so why is this? > > > > Implementation and little optimization. > > Perl has a complex function calling mechanism, as > it flattens argum

Re: Function Calls are Slower - was Re: Print Question

2002-04-05 Thread Jonathan E. Paton
> > Function calls in Perl are dead slow compared > > to compiled languages. > > Ok, so why is this? > Implementation and little optimization. Perl has a complex function calling mechanism, as it flattens argument lists by pushing elements onto the stack, records argument list length - the num

Function Calls are Slower - was Re: Print Question

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 02:51 , Jonathan E. Paton wrote: > Function calls in Perl are > dead slow compared to compiled languages. Ok, so why is this? will this get 'fixed' in p6? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: Print Question

2002-04-05 Thread Jonathan E. Paton
> With alot of calls to the function (approx 10% more > than #'s in array, so ALOT ), would it be quicker > to just put the function stuff in the do loop? Yes, probably quite a bit. If the function stuff isn't useful elsewhere then it would be significatly faster. Function calls in Perl are dea

RE: Print Question

2002-04-05 Thread Balint, Jess
do any good for me ( if I understand tied arrays ). -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:24 PM To: [EMAIL PROTECTED] Subject: Re: Print Question > Hello all. I have been working on this all day. Excellent, you'll app

Re: Print Question

2002-04-05 Thread Jonathan E. Paton
> Hello all. I have been working on this all day. Excellent, you'll appreciate my 5 minutes of effort all the more :P > I am trying to print out numbers 1 through 10 as this loop progesses. > For some reason, it doesn't print the numbers until the end of the loop. If you have that problem, try:

RE: Print Question

2002-04-05 Thread Balint, Jess
Cool. Works great. Thanks guys! -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:11 PM To: Balint, Jess Cc: '[EMAIL PROTECTED]' Subject: Re: Print Question On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have be

Re: Print Question

2002-04-05 Thread Chas Owens
On Fri, 2002-04-05 at 14:37, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > by the getUniqRand(

Re: Print Question

2002-04-05 Thread Brett W. McCoy
On Fri, 5 Apr 2002, Balint, Jess wrote: > Hello all. I have been working on this all day. I am trying to print out > numbers 1 through 10 as this loop progesses. For some reason, it doesn't > print the numbers until the end of the loop. The $done variable is set to 1 > by the getUniqRand() functi

Print Question

2002-04-05 Thread Balint, Jess
Hello all. I have been working on this all day. I am trying to print out numbers 1 through 10 as this loop progesses. For some reason, it doesn't print the numbers until the end of the loop. The $done variable is set to 1 by the getUniqRand() function once certain conditions are met. Everything wo

Re: $ENV and print question

2001-07-19 Thread John
Correct me if I am wrong since I'm just a newbie.. > > $mypath = $ENV(PATH); > > $myeditor= $ENV{EDITOR}; > > $mytest = 123; > > $mytest2 = "Perl" ^ Doesn't this require a semicolon? > > add "my" at the beginning of the lines: > > my $mypath = $ENV(PATH);

Re: $ENV and print question

2001-07-19 Thread Paul Johnson
On Fri, Jul 20, 2001 at 02:39:04AM +0200, Paul Johnson wrote: > On Thu, Jul 19, 2001 at 05:28:05PM -0700, Sekhar, Ravi wrote: > > $mypath = $ENV(PATH); > my $mypath = $ENV(PATH); I should read more carefully. You need braces here instead of parentheses. my $mypath = $ENV{PATH}; (Or mayb

Re: $ENV and print question

2001-07-19 Thread Paul Johnson
On Thu, Jul 19, 2001 at 05:28:05PM -0700, Sekhar, Ravi wrote: > #!/usr/bin/perl -w > use strict; Good! > $mypath = $ENV(PATH); > $myeditor= $ENV{EDITOR}; > $mytest = 123; > $mytest2 = "Perl" add "my" at the beginning of the lines: my $mypath = $ENV(PATH); (Actually, I'd get rid of "my"

$ENV and print question

2001-07-19 Thread Sekhar, Ravi
Hi all, I am trying to do two basic things in my PERL script: 1) Read in the values of two environment variables 2) Print the values of scalars and environment variables I do not understand the errors that were generated when I compiled the following script. Any help in understanding what I ma