[12615] in Perl-Users-Digest
Perl-Users Digest, Issue: 24 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jul 6 20:17:14 1999
Date: Tue, 6 Jul 1999 17:06:41 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 6 Jul 1999 Volume: 9 Number: 24
Today's topics:
CGI in IIS? <jlwillis@stroudsburg.com>
Re: CGI in IIS? <gellyfish@gellyfish.com>
cgi-large records <h0p2468@acs.tamu.edu>
Chat script...please help <kuzzero@nconnect.net>
Re: Chat script...please help <webmaster@chatbase.com>
Re: Chat script...please help (Abigail)
Re: chop the file <splattael@gmx.net>
Re: chop the file <JFedor@datacom-css.com>
Re: chop the file (Ronald J Kimball)
Re: Coleridge/Christiansen (I.J. Garlick)
commenting code in perl <Viral.Sheth@ny.email.gs.com>
commenting code in perl <Viral.Sheth@ny.email.gs.com>
Re: commenting code in perl <bivey@teamdev.com>
Re: Communication between CGI and apache (Ronald J Kimball)
Re: comp.infosystems.www.authoring.cgi Question (Ronald J Kimball)
Re: comp.infosystems.www.authoring.cgi Question <ing-sol@hkisl.net>
Re: comp.infosystems.www.authoring.cgi Question <gellyfish@gellyfish.com>
Compile a perl program.. <occy@caboolture.net.au>
Re: Compile a perl program.. (Abigail)
Compiling a C program generated from Perl with VC++ 5.0 <d.villeger@chu-nancy.fr>
Compiling Perl on VMS: fcntl <kimball@stsci.edu>
Re: Compiling Perl on VMS: fcntl <sugalskd@netserve.ous.edu>
Re: Computing log base 10 in perl <mhc@Eng.Sun.COM>
Cookie problem <thurley@globalnet.co.uk>
Re: Cookie problem <swiftkid@bigfoot.com>
Re: Cookie problem (Abigail)
creating charts from data extracted by perl <jont@uk.uu.net>
Re: creating charts from data extracted by perl <swiftkid@bigfoot.com>
curious: Perl 1.0 <swiftkid@bigfoot.com>
Re: curious: Perl 1.0 (Alan Barclay)
Re: curious: Perl 1.0 <gellyfish@gellyfish.com>
Re: curious: Perl 1.0 (Bart Lateur)
Date <technology@workmail.com>
Re: Date (Alastair)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 4 Jul 1999 16:19:46 -0400
From: "Jim Willis" <jlwillis@stroudsburg.com>
Subject: CGI in IIS?
Message-Id: <KmPf3.40$zG.4324@jump.innerx.net>
I'm having dificulties getting a CGI file to execute on an IIS server
running the new perl 5.18.
Please send any and all requirements for CGI in IIS to execute.
Thank you
Jim.
------------------------------
Date: 4 Jul 1999 21:17:07 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: CGI in IIS?
Message-Id: <7loj0j$4eb$1@gellyfish.btinternet.com>
On Sun, 4 Jul 1999 16:19:46 -0400 Jim Willis wrote:
> I'm having dificulties getting a CGI file to execute on an IIS server
> running the new perl 5.18.
> Please send any and all requirements for CGI in IIS to execute.
>
This is documented in the Win32 specific FAQ that ships with the Activestate
distribution. This can be accessed via the Active Perl shortcut in your
start menu. If you are still having difficulties with this after you have
read that document then you will be better off asking in the newsgroup
comp.infosystems.www.servers.ms-windows.
By the way what you describe as the 'new perl 5.18' is actually 'Build 518'
of the Activestate distribution based on the Perl 5.005.03 core. Just a
spot of pedantry really.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Fri, 2 Jul 1999 21:46:42 -0700
From: "Mei" <h0p2468@acs.tamu.edu>
Subject: cgi-large records
Message-Id: <7lju7e$5ml$1@news.tamu.edu>
Hello,
I am writing a cgi script to query an Oracle database. Some of queries can
return 1000s records. I would like it to display 50 records at a time, then
use "next 50 records" to get into the second page. How do I do that? Thank
you in advance.
Mei
------------------------------
Date: Sat, 3 Jul 1999 04:07:27 -0500
From: "John Curry" <kuzzero@nconnect.net>
Subject: Chat script...please help
Message-Id: <7lkjke$p1c@enews4.newsguy.com>
I'm running a Sambar server with Active State Perl 5.004, I have been able
to impliment basic cgi programs like a counter and a clock. I'm trying to
impliment a chat.pl and it seems to be running without errors, least none
that show in the logs, but all that is generated is a completely blank
page... any suggestions to correct this?
------------------------------
Date: Sat, 03 Jul 1999 14:21:38 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
To: John Curry <kuzzero@nconnect.net>
Subject: Re: Chat script...please help
Message-Id: <377E7EE2.7E151532@chatbase.com>
John Curry wrote:
>
> I'm running a Sambar server with Active State Perl 5.004, I have been able
> to impliment basic cgi programs like a counter and a clock. I'm trying to
> impliment a chat.pl and it seems to be running without errors, least none
> that show in the logs, but all that is generated is a completely blank
> page... any suggestions to correct this?
You'd be better off asking this in a CGI NG. If it's working otherwise,
it's probably the Content type that's the problem. Maybe some relevant
parts of the code in your post would be helpful, rather then "The page
shows blank", because it's very difficult to guess. It also might work
with one brand of web browser and not another, which can indicate other
problems. It may not be calling a sub routine properly, or it might not
even be there. It could be trying to locate a configuration file that
isn't there, or is erroring. It can be near anything. Just knowing it's
called "chat.pl" isn't helpful at all, as it's not relevant.
--
Regards,
Tim Greer : webmaster@chatbase.com | software@linkworm.com
The ChatBase: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripts in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, +Sciences.
------------------------------
Date: 3 Jul 1999 16:32:37 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Chat script...please help
Message-Id: <slrn7nt0b2.31h.abigail@alexandra.delanet.com>
John Curry (kuzzero@nconnect.net) wrote on MMCXXXII September MCMXCIII in
<URL:news:7lkjke$p1c@enews4.newsguy.com>:
'' I'm running a Sambar server with Active State Perl 5.004, I have been able
'' to impliment basic cgi programs like a counter and a clock. I'm trying to
'' impliment a chat.pl and it seems to be running without errors, least none
'' that show in the logs, but all that is generated is a completely blank
'' page... any suggestions to correct this?
Perhaps noone is chatting? After all, a room with people where noone
is talking is silent as well.
Abigail
--
perl -we '$_ = q ;4a75737420616e6f74686572205065726c204861636b65720as;;
for (s;s;s;s;s;s;s;s;s;s;s;s)
{s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sat, 03 Jul 1999 02:57:27 +0200
From: Peter Suschlik <splattael@gmx.net>
Subject: Re: chop the file
Message-Id: <377D5FF7.6A18BBDC@gmx.net>
bing-du@tamu.edu wrote:
Hi.
[..]
> I want the following code to chop the file into four files according to
> the initial letter of the lastname:
~~~~~~~
> file1: A-F
> file2: G-L
> file3: M-R
> file4: S-Z
[..]
> open(FILE,"file");
Errorchecking:
open(HANDLE,"< $file") or die "open: $!\n";
> open(FILE1,"file1");
> open(FILE2,"file2");
> open(FILE3,"file3");
> open(FILE4,"file4");
Errorchecking + opening for writing or appending:
open(HANDLE,"> $file") or die "write: $!\n";
open(HANDLE,">> $file") or die "append: $!\n";
It is your decision.
> while (<FILE>)
> {
> chomp $_;
> if ($_ =~ /lastname=[A-F]*/)
^
Only the initial letter?
print FILEX $_,"\n" if($_=~/lastname=[x-y]/io);
i = case insensetive
o = compile pattern only once ( faster ?)
[..]
> close(FILE);
> close(FILE1);
> close(FILE2);
> close(FILE3);
> close(FILE4);
Loop?
Regards.
Peter Suschlik
--
Learning German (lesson #483):
das Busmaster, fertiggestellt, das Landgestuet, hervorschauen,
diese Verwundung, dieser Sonderproblem, diese Maas, das Ortungsgeraete.
------------------------------
Date: Sat, 3 Jul 1999 01:43:39 -0400
From: "Jody Fedor" <JFedor@datacom-css.com>
Subject: Re: chop the file
Message-Id: <7lk639$ho7$1@plonk.apk.net>
bing-du@tamu.edu wrote in message <7lika4$dum$1@nnrp1.deja.com>...
<SNIP>
>while (<FILE>)
>{
> chomp $_;
> if ($_ =~ /lastname=[A-F]*/)
> {
> print "put in file1: $_\n";
> }
> if ($_ =~ /lastname=[G-L]*/)
> {
> print FILE2 "$_\n";
> }
> if ($_ =~ /lastname=[M-R]*/)
> {
> print FILE3 "$_\n";
> }
> if ($_ =~ /lastname=[S-Z]*/)
> {
> print FILE4 "$_\n";
<SNIP>
Tom Christiansen wrote in message <377d58ad@cs.colorado.edu>...
>I just hate reading C<$_ =~ >. It's Nimrod code that guarantees that
>someone is mildly confused -- at best. People who write C<$_ =~ >
>doubtless have nastier habits, too. As you noted. :-)
As stated in Chapter 1, page 27 of "Programming Perl" O'Reilly it states:
By the way, if you don't use the =~ binding operator, then Perl will
search a default
variable instead of $line. This default space is really just a special
variable that goes
by the odd name of $_. In fact, many of the operators in Perl default
to using the $_
variable, SO AN EXPERT PERL PROGRAMMER MIGHT WRITE THE ABOVE AS:
if (/lastname=[S-Z]/)
$_ being implied.
As stated in Chapter 2, page 57 IBID it states:
On the other hand, for the m// operator only, the m may be omitted if
the delimiters you pick
are in fact slashes.
m being implied.
Jody
See Tom, some people actually do read your books!
------------------------------
Date: Sun, 4 Jul 1999 11:06:03 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: chop the file
Message-Id: <1duezbf.1gwtflu185ko00N@p215.tc2.state.ma.tiac.com>
Peter Suschlik <splattael@gmx.net> wrote:
> print FILEX $_,"\n" if($_=~/lastname=[x-y]/io);
>
> i = case insensetive
> o = compile pattern only once ( faster ?)
>
o = irrelevant if the pattern contains no interpolated variables.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Mon, 5 Jul 1999 12:21:14 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: Coleridge/Christiansen
Message-Id: <FEECzF.An9@csc.liv.ac.uk>
In article <377D4B57.4BC9BF4F@cts.wustl.edu>,
Elaine -HappyFunBall- Ashton <elaine@cts.wustl.edu> writes:
> > I saw the back end of a thread about "In Mountain View did Larry Wall"
>
> Nicely done Tom. It makes me regret not surfing news more these days :)
I was just last week wondering "what ever happened to 'Elaine
-HappyFunBall- Ashton'? she never posts anymore". (I mean how can you
possibly forget a name like that :-) ) "Perhaps it was someone trying one
of those gender/newsgroup experiment thingys"?
Since I am not a memeber of Boston.pm (who probably do know her) I was
most puzzeled.
Now all is right with the world (well this part of it, and not everything,
ok, ok will you settle for an improvement?).
Welcome back Elaine, I for one missed your witty and irreverant posts.
(even if they will only be sporadic, as you imply above.)
--
Ian J. Garlick
ijg@csc.liv.ac.uk
As long as the answer is right, who cares if the question is wrong?
------------------------------
Date: Tue, 06 Jul 1999 17:01:14 +0100
From: Viral Sheth <Viral.Sheth@ny.email.gs.com>
Subject: commenting code in perl
Message-Id: <3782284A.3E6DE4FC@ny.email.gs.com>
does anyone know how to comment chunks of code in perl without having to
go through every single line..
i know # is used to comment one line..
here is what i need..
.
------------------------------
Date: Tue, 06 Jul 1999 17:01:21 +0100
From: Viral Sheth <Viral.Sheth@ny.email.gs.com>
Subject: commenting code in perl
Message-Id: <37822850.FA097CEC@ny.email.gs.com>
does anyone know how to comment chunks of code in perl without having to
go through every single line..
i know # is used to comment one line..
here is what i need..
.
------------------------------
Date: 6 Jul 1999 21:22:30 GMT
From: "William" <bivey@teamdev.com>
Subject: Re: commenting code in perl
Message-Id: <01bec7f5$b889b4e0$583c08cf@bill.jump.net>
Viral Sheth <Viral.Sheth@ny.email.gs.com> wrote in article
<37822850.FA097CEC@ny.email.gs.com>...
> does anyone know how to comment chunks of code in perl without having to
> go through every single line..
> i know # is used to comment one line..
> here is what i need..
Personally, I prefer to comment out lines individually so I can
tell in a search window which lines are active. However, you
could bracket the section with embedded documentation tags like
=back
stuff you want
commented out
=cut
and, assuming no one tries to extract documentation, only you
will know the difference.-Wm
------------------------------
Date: Sun, 4 Jul 1999 11:06:04 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Communication between CGI and apache
Message-Id: <1duezgc.efbc041dwmowcN@p215.tc2.state.ma.tiac.com>
<manitee@my-deja.com> wrote:
> Well James, it seems that you take this perhaps a bit too seriously.
> Many people who use perl use it to author CGI's, and thus may have had
> experience with apache interaction.
>
> I dont feel that this post is misdirected, though I do feel that your
> seemingly militant responses are.
>
> hah hahahh ah hha
Many people who use Perl do _not_ use it to author CGI scripts. On the
other hand, many people who use Perl eat pizza. So, why you don't ask
comp.lang.perl.misc for a pizza recipe?
Get a clue.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 4 Jul 1999 11:06:05 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: comp.infosystems.www.authoring.cgi Question
Message-Id: <1duezj4.1fppx7h2m9yijN@p215.tc2.state.ma.tiac.com>
Joey <ceo@internettradingpost.com> wrote:
> I've noticed for several days now, that there has been absolutely no
> activity at comp.infosystems.www.authoring.cgi. I really can't believe
> that there is "really" no activity, is there an occasional disruption
> of service for some reason I'm not aware?
Yes. Every time someone comes to comp.lang.perl.misc to ask a CGI
question, traffic in comp.infosystems.www.authoring.cgi halts for one
hour.
Unfortunately, every time someone comes to clpm to ask a question about
ciwac itself, traffic there halts for an entire day! Now you'll have to
wait at least 24 hours to see traffic again.
Let that be a lesson to you!
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Mon, 05 Jul 1999 01:49:13 +0800
From: Sleiman <ing-sol@hkisl.net>
To: ceo@internettradingpost.com
Subject: Re: comp.infosystems.www.authoring.cgi Question
Message-Id: <377F9E99.B3868804@hkisl.net>
Joey wrote:
> Thanks in Advance,
>
> I've noticed for several days now, that there has been absolutely no
> activity at comp.infosystems.www.authoring.cgi. I really can't believe
> that there is "really" no activity, is there an occasional disruption
> of service for some reason I'm not aware?
>
> Thanks,
>
Thanks for asking the question on this newsgroup. I noticed the same thing
and changed a news server to double check it. I don't know what's
happening with it.
Regards,
Sleiman
------------------------------
Date: 4 Jul 1999 21:05:03 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: comp.infosystems.www.authoring.cgi Question
Message-Id: <7loi9v$4e8$1@gellyfish.btinternet.com>
On Mon, 05 Jul 1999 01:49:13 +0800 Sleiman wrote:
> Joey wrote:
>
>> I've noticed for several days now, that there has been absolutely no
>> activity at comp.infosystems.www.authoring.cgi.
>>
> Thanks for asking the question on this newsgroup. I noticed the same thing
> and changed a news server to double check it. I don't know what's
> happening with it.
>
Perhaps the moderator has gone on holiday ;-}
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 04 Jul 1999 13:36:16 +1000
From: "Õ¢¢¥" <occy@caboolture.net.au>
Subject: Compile a perl program..
Message-Id: <377ED6B0.3A3F408@caboolture.net.au>
I hered of a program that you can compile you perl programs so that they
do not have to be compiled buy the perl interpreter everytime they are
run therefour maketing them as fast as programs written in c/c++ does
anyone know where a program like this exists or how to obtain one..
------------------------------
Date: 4 Jul 1999 00:16:11 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Compile a perl program..
Message-Id: <slrn7ntrg8.31h.abigail@alexandra.delanet.com>
occy@caboolture.net.au (occy@caboolture.net.au) wrote on MMCXXXIII
September MCMXCIII in <URL:news:377ED6B0.3A3F408@caboolture.net.au>:
.. I hered of a program that you can compile you perl programs so that they
.. do not have to be compiled buy the perl interpreter everytime they are
.. run therefour maketing them as fast as programs written in c/c++ does
.. anyone know where a program like this exists or how to obtain one..
You heard something about something that doesn't exist. Yes, there's a
Perl compiler. No, it doesn't magically make them as fast as programs
written in C. Or at least not as fast as equivalent, well programmed
programs in C. (After all, the compiler does generate a C program, that
runs as fast as itself....). Of course, there's a FAQ that could have
told you.
Abigail
--
perl -wleprint -eqq-@{[ -eqw\\- -eJust -eanother -ePerl -eHacker -e\\-]}-
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sat, 3 Jul 1999 17:52:43 +0200
From: "didier Villeger" <d.villeger@chu-nancy.fr>
Subject: Compiling a C program generated from Perl with VC++ 5.0
Message-Id: <7llbnn$48t$1@news4.isdnet.net>
I can't link a simple perl filter converted with :
perl - MO=C xx.pl >xx.c
The link proceded with errors like :
Perl_pp_wantarray unreferenced symbols and so on
any idea ?
--
didier Villeger
13 bis, rue de la Croix Gagnee
F 54000 Nancy
Tel : +33 - 03 83 98 45 22 Fax : +33 - 03 83 98 90 99
Email : d.villeger@chu-nancy.fr
------------------------------
Date: Fri, 02 Jul 1999 14:04:57 -0400
From: Tim Kimball <kimball@stsci.edu>
Subject: Compiling Perl on VMS: fcntl
Message-Id: <377CFF49.8F558E0B@stsci.edu>
Hello all,
We're trying to build Perl 5.00503 on an Alpha running VMS 7.1 with DECC
5.6 and we keep hitting a wall with fcntl.pm:
%MMS-W-GMFUTURE, Time for FCNTL.BS is in the future: 2-JUL-1999
13:09:46.00
Copy/NoConfirm Fcntl.bs [--.lib.auto.Fcntl]Fcntl.bs
%COPY-S-COPIED, DISK$BARNEY:[AUSHERMAN.PERL.PERL5.EXT.FCNTL]FCNTL.BS;1
copied to DISK$BARNEY:[AUSHERMAN.PERL.PERL5.LIB.AUTO.FCNTL]FCNTL.BS;1 (0
records)
%MMS-F-ABORT, For target [.LIB.AUTO.FCNTL]FCNTL.EXE, CLI returned abort
status: %X10EE8148.
Can anyone tell us what's going on & how we might fix it? In particular:
* Why does FCNTL.BS always look like it's in the future?
* What does abort status %X10EE8148 mean?
--
Tim Kimball =B7 Data Systems Division =A6 kimball@stsci.edu =B7 410-338-4=
417
Space Telescope Science Institute =A6 http://www.stsci.edu/~kimball/
3700 San Martin Drive =A6 http://archive.stsci.edu/
Baltimore MD 21218 USA =A6 http://faxafloi.stsci.edu:4547/
------------------------------
Date: 6 Jul 1999 20:44:01 GMT
From: Dan Sugalski <sugalskd@netserve.ous.edu>
Subject: Re: Compiling Perl on VMS: fcntl
Message-Id: <7ltpqh$593$1@news.NERO.NET>
Tim Kimball <kimball@stsci.edu> wrote:
: Hello all,
: We're trying to build Perl 5.00503 on an Alpha running VMS 7.1 with DECC
: 5.6 and we keep hitting a wall with fcntl.pm:
: %MMS-W-GMFUTURE, Time for FCNTL.BS is in the future: 2-JUL-1999
: 13:09:46.00
: Copy/NoConfirm Fcntl.bs [--.lib.auto.Fcntl]Fcntl.bs
: %COPY-S-COPIED, DISK$BARNEY:[AUSHERMAN.PERL.PERL5.EXT.FCNTL]FCNTL.BS;1
: copied to DISK$BARNEY:[AUSHERMAN.PERL.PERL5.LIB.AUTO.FCNTL]FCNTL.BS;1 (0
: records)
: %MMS-F-ABORT, For target [.LIB.AUTO.FCNTL]FCNTL.EXE, CLI returned abort
: status: %X10EE8148.
This happens sometimes with the VMS perl build. We're not entirely sure
why, but it's harmless. Just reissue the MMS command and you'll be fine.
Alternately, add an /IGNORE=WARNING on the initial MMS command and it'll
note the problem and keep on going.
Dan
------------------------------
Date: 04 Jul 1999 20:51:32 -0700
From: Mike Coffin <mhc@Eng.Sun.COM>
Subject: Re: Computing log base 10 in perl
Message-Id: <8p6so7369ff.fsf@Eng.Sun.COM>
gmiller@iglou.com (Greg Miller) writes:
> The log function in perl is base e. I know there's a way to
> use the base e log to compute the log base 10. Does anyone know how
> it's done?
log_10(x) = log_e(x)/log_e(10)
-mike
------------------------------
Date: Sun, 4 Jul 1999 14:51:37 +0100
From: "Thurley" <thurley@globalnet.co.uk>
Subject: Cookie problem
Message-Id: <7lnp03$eg3$1@gxsn.com>
To use my cookies, I do the following:
use CGI;
$query = CGI::new();
Then to check if there is a cookie already (called "year"), I use:
$cookie = $query->cookie('year');
$val = $cookie->value();
Unfortunately, the line "$val = $cookie->value();" is giving me a server
error, which I assume is because of the syntax ($cookie not having a member
"value" ??). The problem is that I don't know what to do about it.
Thanks,
James.
------------------------------
Date: Sun, 4 Jul 1999 18:58:58 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: Cookie problem
Message-Id: <7loskn$ai59@news.cyber.net.pk>
> use CGI;
> $query = CGI::new();
$query = new CGI;
>
> Then to check if there is a cookie already (called "year"), I use:
>
> $cookie = $query->cookie('year');
> $val = $cookie->value();
I don't think there is a value() function!
$cookie = $query -> cookie ( 'year' )
returns the value of the cookie!
more info:
perldoc CGI
------------------------------
Date: 4 Jul 1999 10:15:34 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Cookie problem
Message-Id: <slrn7nuuk4.31h.abigail@alexandra.delanet.com>
Thurley (thurley@globalnet.co.uk) wrote on MMCXXXIII September MCMXCIII
in <URL:news:7lnp03$eg3$1@gxsn.com>:
== To use my cookies, I do the following:
==
== use CGI;
== $query = CGI::new();
==
== Then to check if there is a cookie already (called "year"), I use:
==
== $cookie = $query->cookie('year');
== $val = $cookie->value();
==
== Unfortunately, the line "$val = $cookie->value();" is giving me a server
== error, which I assume is because of the syntax ($cookie not having a member
== "value" ??). The problem is that I don't know what to do about it.
You RTFM. It will explain whether CGI::new () -> cookie () has a member
value () or not.
Abigail
--
package Z;use overload'""'=>sub{$b++?Hacker:Another};
sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just}
$,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Tue, 6 Jul 1999 15:43:46 +0100
From: "Jonathan Tracey" <jont@uk.uu.net>
Subject: creating charts from data extracted by perl
Message-Id: <7lt4p0$9ov$1@wave.cam.uk.internal>
Hi
Does anyone know of a freeware app like gnu-plot which has been ported to
win32 that I can call from my perl scripts, I am gettting very hacked off
calling excel via OLE, there must be a better way.
Cheers
Jon
------------------------------
Date: Tue, 6 Jul 1999 20:00:58 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: creating charts from data extracted by perl
Message-Id: <7lu912$dfl10@news.cyber.net.pk>
Jonathan Tracey <jont@uk.uu.net> wrote in message
news:7lt4p0$9ov$1@wave.cam.uk.internal...
> Hi
>
> Does anyone know of a freeware app like gnu-plot which has been ported to
> win32 that I can call from my perl scripts, I am gettting very hacked off
> calling excel via OLE, there must be a better way.
Have a look at:
GIFgraph module @ CPAN.
------------------------------
Date: Sun, 4 Jul 1999 21:02:39 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: curious: Perl 1.0
Message-Id: <7lp3sc$ai510@news.cyber.net.pk>
Was there ever Perl 1.0?
Can I get the source for it?
I just want to know how the initial perl looked like ;-)
--
Faisal Nasim (the Whiz Kid)
Web: http://wss.hypermart.net/
AOL: Whiz Swift ICQ: 4265451
FAX: (815) 846-2877
------------------------------
Date: 4 Jul 1999 20:49:33 GMT
From: gorilla@elaine.drink.com (Alan Barclay)
Subject: Re: curious: Perl 1.0
Message-Id: <931121346.852276@elaine.drink.com>
In article <7lp3sc$ai510@news.cyber.net.pk>,
Faisal Nasim <swiftkid@bigfoot.com> wrote:
>Was there ever Perl 1.0?
perldoc perlhist
>Can I get the source for it?
http://www.oasis.leo.org/perl/src/perl1/00-index.html
------------------------------
Date: 4 Jul 1999 20:50:10 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: curious: Perl 1.0
Message-Id: <7lohe2$4e0$1@gellyfish.btinternet.com>
On Sun, 4 Jul 1999 21:02:39 +0500 Faisal Nasim wrote:
> Was there ever Perl 1.0?
>
> Can I get the source for it?
>
> I just want to know how the initial perl looked like ;-)
>
I posted the full URL some days ago in response to a similar question
but you will be able to find an archive at <http://www.leo.org>
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 04 Jul 1999 22:43:47 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: curious: Perl 1.0
Message-Id: <377fe180.1439749@news.skynet.be>
Faisal Nasim wrote:
>Was there ever Perl 1.0?
Since Perl wasn't devised by MS PR people, I'd say "yes".
Bart.
------------------------------
Date: Sun, 04 Jul 1999 22:42:16 -0700
From: Raj <technology@workmail.com>
Subject: Date
Message-Id: <378045B8.88E4308E@workmail.com>
Hi,
Given a Date range passed from the CGI/Perl script, how do we retrieve a
set of rows/records from a text file (of format say..
01Jan1999:col2:col3) that matches the date range.??? TIA,
Raj
------------------------------
Date: Tue, 06 Jul 1999 00:17:41 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: Date
Message-Id: <slrn7o2mea.5p.alastair@calliope.demon.co.uk>
Raj <technology@workmail.com> wrote:
>Hi,
>Given a Date range passed from the CGI/Perl script, how do we retrieve a
>
>set of rows/records from a text file (of format say..
>01Jan1999:col2:col3) that matches the date range.??? TIA,
>Raj
First, learn how to open and read a file.
Then, look at using 'split' to split each line into fields.
Then, maybe look at using a Date::* module (from CPAN) to parse date strings.
HTH.
--
Alastair
work : alastair@psoft.co.uk
home : alastair@calliope.demon.co.uk
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 24
************************************