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
> > > > 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
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
> > 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
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
> 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
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
> 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:
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
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(
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
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
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);
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
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"
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
16 matches
Mail list logo