[12465] in Perl-Users-Digest
Perl-Users Digest, Issue: 6065 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jun 20 11:07:12 1999
Date: Sun, 20 Jun 99 08:00:21 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 20 Jun 1999 Volume: 8 Number: 6065
Today's topics:
Re: %IS THIS SCRIPT ANY GOOD ?% %IS THIS SCRIPT ANY GOO (Bill)
Re: 'Perl core' or 'perl core'? <rick.delaney@home.com>
[Fwd: c::scan and c modules] <jonlee@sls.lcs.mit.edu>
Re: ActiveState Perl and use of PPM (Erol Bernstein)
Re: Chat and E-mail With Perl? <rootbeer@redcat.com>
Re: Cure for document deficiency (Abigail)
Re: Cure for document deficiency (Dave Cross)
Re: Cure for document deficiency <wyzelli@yahoo.com>
Re: Cure for document deficiency (Bill)
dll problem witteborn@my-deja.com
Re: function to read a line & return it <zjagrantz@znrcanz.gcz.ca>
Re: function to read a line & return it (Abigail)
Re: HOW DO I PAD A STRING IN PERL?? (Dave Cross)
Re: Language choice for high-volume Oracle CGI interfac <maggelet@earthlink.net>
Re: Language choice for high-volume Oracle CGI interfac (Rene Pijlman)
Re: Language choice for high-volume Oracle CGI interfac <ulim@denic.de>
Re: LD_LIBRARY_PATH setting within the perl program thanya@my-deja.com
Perl 2 C translator available? <Armin.Roehrl@epfl.ch>
Re: Perl 2 C translator available? <rootbeer@redcat.com>
Re: Perl Script Help <rootbeer@redcat.com>
Remote Scripting <bruce.d@btinternet.com>
resize pics <office@cocotime.com>
Re: resize pics (Dave Cross)
Re: SMTP <rootbeer@redcat.com>
Re: Sort (Abigail)
time question (Jimtaylor5)
Re: time question (Dave Cross)
Re: writing at mark from print <tchrist@mox.perl.com>
Re: writing at mark from print (Abigail)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 20 Jun 1999 06:46:00 -0700
From: moseley@best.com (Bill)
Subject: Re: %IS THIS SCRIPT ANY GOOD ?% %IS THIS SCRIPT ANY GOOD ?%
Message-Id: <MPG.11d6907084969f4d989750@206.184.139.132>
In article <376c91be.80404466@news.cheapnet.co.uk>, sam@cheapnet.co.uk
says...
> this is my first PERL script - i have been learning for 6 days.
> it works fine but is it good or crap ?
My internal parser crashed and returned "failed to 'use strict'"
But I'd guess the answer is if it solves your problem correctly then it
is perfect.
--
Bill Moseley mailto:moseley@best.com
------------------------------
Date: Sun, 20 Jun 1999 12:54:21 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: 'Perl core' or 'perl core'?
Message-Id: <376CE43C.4B13586A@home.com>
[posted & mailed]
Larry Rosler wrote:
>
> Uri Guttman and I are completing a paper for the upcoming Perl
> Conference in Monterey, on new efficient sorting techniques. We
> disagree on the capitalization in the following paragraph, and are
> trying to get a consensus from the wise heads in this newsgroup.
Let me guess; Uri wants all caps removed.
<ducking>
[paragraph snipped]
> So, which should it be, 'Perl core' or 'perl core'?
perl -ne 'print if /perl\Wcore/i;'
Because it is intended for internal use by Perl core components,
further discussion. (Perl core uses it I<only> when "dumping";
concerned with detailed perl-core behaviour or implementing a
Current categories under CPAN/modules/by-category/ include perl core
functionality is now integrated into the Perl core language: One can
and will result in mysterious hangs and/or Perl core dumps when the
Function whose names are in all upper case are reserved to the Perl
core,
'Perl core' seems more common. I think that makes more sense. The core
stuff of Perl is built into perl but it still has to do with the Perl
*language*.
--
Rick Delaney
rick.delaney@home.com
------------------------------
Date: Wed, 16 Jun 1999 21:51:47 +0100
From: Jonathan Lee <jonlee@sls.lcs.mit.edu>
Subject: [Fwd: c::scan and c modules]
Message-Id: <780A83616B05D31196800020484025005846B7@SEUBPEBAS54>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01BEBAFB.A23BE246
Content-Type: text/plain;
charset="iso-8859-1"
perhaps someone in this ng could help me as well (originally sent this
to comp.lang.perl.modules)
------_=_NextPart_000_01BEBAFB.A23BE246
Content-Type: message/rfc822
Newsgroups: comp.lang.perl.modules
From: Jonathan Lee <jonlee@sls.lcs.mit.edu>
Subject: c::scan and c modules
Message-ID: <3767FE7D.BE416141@sls.lcs.mit.edu>
Sender: Jonathan Lee <jonlee@sls.lcs.mit.edu>
Date: Wed, 16 Jun 1999 20:43:57 +0100
MIME-Version: 1.0
Lines: 25
X-Newsreader: Microsoft (R) Exchange Internet News Service Version 5.5.2448.0
Content-Type: text/plain
hello,
i'm a young, naive perl programmer who needs to do some interfacing
between c and unix. but i've come across problems.
so i got c::scan and data::flow and i've been trying to use h2xs. i had
purchased and read through oreilly's advanced perl programming book and
had gone through some of the examples.
but for some reason when i try to do everything on my own, i get errors
(of either type 1 or 2) when i try to execute "make". perl Makefile.PL
works, but then "make" and "make test" don't.
here's a couple other things:
i'm a mere undergrad research assistant, of sorts. so on the network i
can't be "superuser" and thus have no writing access to the
/usr/local/lib/perl5 directories to install. so i tried to have all the
.pm and .xs files install on my own dir. (for example, i modify the
Makefile.PL file by adding the line 'PREFIX'=> '/usr/users/jonlee',)
******i would like someone to simply explain what files i need to have
created first (and what actions i need to carry out) so that i can use
Makefile, and my glue code to make my perl program able to call these C
functions.
i have a .c file that has a whole bunch of subroutines. do i need to
have a .h file as well? does my .h file only have the basic prototype
structures, or can they have the whole subroutine included also? do i
need to use #include? any special lines like you need to use in perl
(#!/usr/local/bin/perl5). can you have .pm modules installed elsewhere
instead of the main perl5 directory?
i've been frustratingly reading and rereading these books (i've got 4 of
them on my desks) to no avail for the past week now.
jon
------_=_NextPart_000_01BEBAFB.A23BE246--
------------------------------
Date: Sun, 20 Jun 1999 11:09:46 GMT
From: erol.bernstein@owl-online.de (Erol Bernstein)
Subject: Re: ActiveState Perl and use of PPM
Message-Id: <376ccba6.8040201@news.owl-online.de>
On Sat, 19 Jun 1999 20:51:11 -0400, Bob Walton
<walton@frontiernet.net> wrote:
Bob, fine thanks for this hint.
It works.
Last night I was getting gray hairs while trying to work with ppm
online ... now I'm lucky again :-)
This should be into the FAQ.
salute
erol
>> Error installing package 'Tk.pm': Could not locate a PPD file for
>> package Tk.pm
>Erol, I've had the best luck with PPM by doing as follows:
>
>1. Browse to http://www.activestate.com/packages/zips
>
>2. Download the zip file for the package you want, like Tk.zip
>
>3. Extract the zip file to a convenient place, like maybe c:\temp, being
>sure to preserve the directory structure.
>
>4. Issue the DOS command:
>
>ppm "--location=c:\temp"
>
>5. Then issue, in response to ppm's prompt:
>
>install Tk
>
>I have had intermittent unreliability problems with ppm over the net with
>both Windows 95 and NT, but it has always worked well from a local
>directory.
>
------------------------------
Date: Sun, 20 Jun 1999 07:30:51 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Chat and E-mail With Perl?
Message-Id: <Pine.GSO.4.02A.9906200729300.20762-100000@user2.teleport.com>
On Fri, 18 Jun 1999, Spud wrote:
> Newsgroups: comp.lang.perl.misc, alt.perl, comp.lang.perl
If your news administrator still carries comp.lang.perl, please let him
or her know that that newsgroup has not existed since 1995. If you
have such an outdated newsgroup listing, you are probably missing out
on many other valid newsgroups as well. You'll be doing yourself and
many others a favor to use only comp.lang.perl.misc (and other valid
Perl newsgroups) instead.
And was there ever any reason to use alt.perl?
> I am thinking about writing a secure program for chatting and
> sending/receiving e-mail in Perl. It would allow the user to select
> which kind of encryption they would like (Diffie-Hellman, PGP,
> Blowfish, RSA, etc.) I am quite a novice in the area of programming
> and cryptology, but I'm fascinated by both and learning quickly. I
> would appreciate it if someone could tell me whether or not this idea
> for a secure chat and e-mail network would be possible
Yes, it's possible.
> and if so, point me in the right direction.
http://www.cpan.org/
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 19 Jun 1999 19:43:54 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Cure for document deficiency
Message-Id: <slrn7moea6.ch1.abigail@alexandra.delanet.com>
Tom Christiansen (tchrist@mox.perl.com) wrote on MMCXIX September
MCMXCIII in <URL:news:376c22f6@cs.colorado.edu>:
|| I have an idea. When someone asks a questions that's in the standard
|| perl manpages, we'll all simply mail them the complete manpage. :-)
As soon as I have my T3....
Abigail
--
perl -wle\$_=\<\<EOT\;y/\\n/\ /\;print\; -eJust -eanother -ePerl -eHacker -eEOT
-----------== 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: Sun, 20 Jun 1999 11:13:34 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: Cure for document deficiency
Message-Id: <376dccc4.1650326@news.demon.co.uk>
On Sun, 20 Jun 1999 01:08:00 GMT, marcel.grunauer@lovely.net (Marcel
Grunauer) wrote:
>On 19 Jun 1999 17:08:38 -0700 it came to pass that Tom Christiansen
><tchrist@mox.perl.com> produced 6 lines that required the following
>response:
>
>>I have an idea. When someone asks a questions that's in the standard
>>perl manpages, we'll all simply mail them the complete manpage. :-)
>>
>>--tom
>
>Hmmm. If a lot of people do that, the poor unfortunate will end up
>with dozens of more or less duplicate explanations. This should really
>drive the point home.
>
>Or will there be one person whose job it is to do the mailing? A kind
>of moron pumpkin holder?
I think it's probably more effective if we *all* do it.
Dave...
--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>
------------------------------
Date: Sun, 20 Jun 1999 23:29:32 +0930
From: "Wyzelli" <wyzelli@yahoo.com>
Subject: Re: Cure for document deficiency
Message-Id: <6t6b3.126$E4.56959@vic.nntp.telstra.net>
Dave Cross <dave@dave.org.uk> wrote in message
news:376dccc4.1650326@news.demon.co.uk...
> On Sun, 20 Jun 1999 01:08:00 GMT, marcel.grunauer@lovely.net (Marcel
> Grunauer) wrote:
>
> >On 19 Jun 1999 17:08:38 -0700 it came to pass that Tom Christiansen
> ><tchrist@mox.perl.com> produced 6 lines that required the following
> >response:
> >
> >>I have an idea. When someone asks a questions that's in the standard
> >>perl manpages, we'll all simply mail them the complete manpage. :-)
> >>
> >>--tom
> >
> >Hmmm. If a lot of people do that, the poor unfortunate will end up
> >with dozens of more or less duplicate explanations. This should really
> >drive the point home.
> >
> >Or will there be one person whose job it is to do the mailing? A kind
> >of moron pumpkin holder?
>
> I think it's probably more effective if we *all* do it.
>
> Dave...
>
> --
> Dave Cross <dave@dave.org.uk>
> <http://www.dave.org.uk>
Surely Tom could implement something similar to the FAQ autoposts making use
of Perl to scan for silly questions and then perform the appropriate e-mail
function...
<ducks>
I might have to turn my e-mail off....
:^)
Wyzelli
------------------------------
Date: Sun, 20 Jun 1999 07:22:39 -0700
From: moseley@best.com (Bill)
Subject: Re: Cure for document deficiency
Message-Id: <MPG.11d6990cc74b2d6b989751@206.184.139.132>
In article <6t6b3.126$E4.56959@vic.nntp.telstra.net>, wyzelli@yahoo.com
says...
> Surely Tom could implement something similar to the FAQ autoposts making use
> of Perl to scan for silly questions and then perform the appropriate e-mail
> function...
You know, in comp.infosystems.www.authoring.cgi I think your first
message is not posted to the group. Instead you receive an email telling
you to check the FAQs.
I think Tom could implement something similar. Except the email could
include copies of Programming Perl, Perl Cookbook, and Learning Perl.
BTW -- If the documentation is so damn good, then why are those books so
popular? Oh, I guess there is still room in this world for good
teachers.
--
Bill Moseley mailto:moseley@best.com
------------------------------
Date: Sun, 20 Jun 1999 09:46:54 GMT
From: witteborn@my-deja.com
Subject: dll problem
Message-Id: <7kidae$efu$1@nnrp1.deja.com>
After I've built perl5.005_03 under cygwin32 20.1 for the second
time I couldn't get rid of the following error:
Can't load
'/h-platte/usr/local/lib/perl5/site_perl/cygwin32/auto/idl_lexer/idl_lex
er.dll' for module idl_lexer: 126 at
/h-platte/usr/local/lib/perl5/5.00503/cygwin32/DynaLoader.pm
line 169.
at defgen line 2
BEGIN failed--compilation aborted at defgen line 2.
When I used the YeP-Perl binary this error did not appear but I
had trouble with using fopen() in my dll instead.
To prevent this I linked the libmsvcrt.a lib to perl but now I get the
load error above.
Can anybody help me?
Holger Witteborn
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 20 Jun 1999 02:29:33 -0400
From: "John A. Grant" <zjagrantz@znrcanz.gcz.ca>
Subject: Re: function to read a line & return it
Message-Id: <7ki1ra$2ke3@nrn2.NRCan.gc.ca>
Eric Bohlman wrote in message ...
>John A. Grant (zjagrantz@znrcanz.gcz.ca) wrote:
[...]
>It really depends on who's going to be calling it. undef has the
>advantage of being "out of band"; it can never be confused with something
>you might actually return. "" would be a reasonable value given that
Ok, thanks Eric & Rick. Some of it overlapped, so I'll
reply to both sets of advice here...
Ok, that's a lot of very useful information you've provided.
(a) chomp instead of chop
(b) return; instead of return undef;
(c) undef instead of ""
(d) "eq" instead of "==" for strings
(e) "unless" instead of "if !..."
(f) defined() instead of "..eq undef"
On the issue of whether or not to supply EXPR with 'return',
the docs for return say:
"If no EXPR is given, returns an empty list in a list
context, an undefined value in a scalar context, or
nothing in a void context"
It seems 'fragile' to rely on it getting the proper context to
determine what "return;" should actually return. After all,
"sub" doesn't exactly specify the type of the returned value.
I'm not used to letting the interpreter make these decisions.
Also, if the caller is explicitly testing for "eq undef" or if using
defined(), I would think that the function should do an explicit
"return undef" to match the explicitness of the test. Less prone
to breakage?
But Rick said:
"...don't say
return undef;
because a plain
return;
will serve you better as a general rule."
Can you elaborate on this in the context of my comments
above about it being 'fragile' (IMO) and non-explicit?
Thanks for being gentle :).
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Airborne Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here
------------------------------
Date: 19 Jun 1999 21:02:12 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: function to read a line & return it
Message-Id: <slrn7moisv.ch1.abigail@alexandra.delanet.com>
John A. Grant (zjagrantz@znrcanz.gcz.ca) wrote on MMCXVIII September
MCMXCIII in <URL:news:7kh8b8$2kf4@nrn2.NRCan.gc.ca>:
&& I'm experienced in C/C++, but I'm a bit disoriented in
&& Perl. I've written a function that will read a non-blank,
&& non-commented line of text and return it:
&&
&& sub ReadLine{
&& LINE:
&& while(<FILE>){
&& next LINE if /^#/;
&& next LINE if !m/\S/;
&& chop;
&& return $_;
&& }
&& return undef; # or "" or what?
&& }
&&
&& Questions
&& 1. what should I return if it hits EOF?:
&& - undef?
&& - ""
&& - something else?
I'd suggest returning 4 fried chicken and a coke.
&& 2. how do I test for ReadLine() failure, i.e. EOF? I've tried:
&& (a) returning undef and testing for it:
&& $x=ReadLine();
&& done if($x==undef);
&&
&& (b) returning "" and testing for it:
&& $x=ReadLine();
&& done if($x=="");
&&
&& None of these seem to work. In case b(), when returning "",
&& sure enough when I print $x, it contains "", so why can't I
&& test for it?
Because you are using the wrong operator. == is for comparing numbers.
cmp is for comparing strings.
'$x == undef' ought to work, although I would write 'unless defined $x'.
Abigail
--
perl -MNet::Dict -we '(Net::Dict -> new (server => "dict.org")
-> define ("foldoc", "perl")) [0] -> print'
-----------== 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: Sun, 20 Jun 1999 11:24:12 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: HOW DO I PAD A STRING IN PERL??
Message-Id: <376fcf14.2242757@news.demon.co.uk>
On Sun, 20 Jun 1999 02:41:56 GMT, Perry Fecteau <perfecto@ct2.nai.net>
wrote:
>for example, i want 23 to look like 00023...
>
>how do i do that??
Was there something in perlfaq4 - "How do I pad a string with blanks
or pad a number with zeroes?" that was unclear? Or are you just trying
to get us to do your thinking for you?
perldoc -f sprintf
hth,
Dave...
--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>
------------------------------
Date: Sun, 20 Jun 1999 01:55:03 -0700
From: Mark Maggelet <maggelet@earthlink.net>
Subject: Re: Language choice for high-volume Oracle CGI interface?
Message-Id: <376CAC67.3BA32D46@earthlink.net>
Don't let anyone tell you C++ is faster than Java- It's not anymore. use the hotspot
engine, write the thing in Java,
and save your company about a million bucks.
- Mark
Greg McCann wrote:
> We're doing a proposal for a system doing high-volume financial transactions on
> the internet. We're expecting 10,000 transactions per day at the beginning, up
> to 1,000,000 transactions per day eventually. The client has specified an
> Oracle database with an NT web server, using SSL for secure communications both
> between the browser client and our server and between remote servers and our
> main server.
>
> We're debating what language to use for the CGI programming. C++, Java, Perl,
> ...? I have some experience using Perl for database access, but not with Oracle
> or on a system as large as this. Do you have any thoughts on the relative
> merits of these languages for this application? If possible, we would like to
> follow a path which wouldn't lock us in to a Microsoft platform.
>
> Thanks,
>
> Greg
------------------------------
Date: Sun, 20 Jun 1999 13:04:57 GMT
From: R.Pijlman@applinet.nl (Rene Pijlman)
Subject: Re: Language choice for high-volume Oracle CGI interface?
Message-Id: <376ce6ca.105405925@news.xs4all.nl>
abigail@delanet.com (Abigail) wrote:
>You must be years behind in your literature. Apache with mod_perl won't
>spawn processes.
The question was about CGI, not mod_perl.
Vriendelijke groet,
--
Rene Pijlman <R.Pijlman@applinet.nl>
http://www.applinet.nl/ Informatiesystemen & Internet
------------------------------
Date: Sun, 20 Jun 1999 16:25:14 +0100
From: Ulrich Mayring <ulim@denic.de>
Subject: Re: Language choice for high-volume Oracle CGI interface?
Message-Id: <376D07D7.E495B581@denic.de>
Mark Maggelet schrieb:
>
> Don't let anyone tell you C++ is faster than Java- It's not anymore. use the hotspot
> engine, write the thing in Java,
> and save your company about a million bucks.
Agreed. JDBC and Servlets run everywhere. Another point that hasn't been mentioned:
The weakness in this system is not CGI or what programming language to use,
but Windows NT. For a financial service provider you really should leave an
upgrade path to Unix for database and web server. Thus, use Java and standard
APIs, use Apache, use Oracle.
Ulrich
------------------------------
Date: Sun, 20 Jun 1999 11:47:15 GMT
From: thanya@my-deja.com
Subject: Re: LD_LIBRARY_PATH setting within the perl program
Message-Id: <7kikc3$fsm$1@nnrp1.deja.com>
Try to set it in httpd.conf , if you use apache
at last line of httpd.conf put
SetEnv LD_LIBRARY_PATH /opt/sysbase/lib
Good Luck !
ps. I use oracle and set ORACLE_HOME in script
using
$ENV{ORACLE_HOME}='/u01/app/../8.0.5';
before connect to database and it work! but i'm lazy
to put it on every script. so, i do put it on httpd.conf
Thanyaluk.
In article <37698816.3E1B496C@usa.net>,
murali <myparu@usa.net> wrote:
> I tried $ENV{LD_LIBRARY_PATH}
='/opt/sybase/lib';
> both with and without the BEGIN block... no use.
> I didnt want to use a shell script wrapper to do this
as it will slow the
> process.
>
> murali
>
> Dan Wilga wrote:
>
> > In article <376810F0.106ED28E@usa.net>,
murali <myparu@usa.net> wrote:
> >
> > > Hello,
> > > I am trying to use Sybase::DBlib from a script. it
works fine when I run
> > > it, gets data and shows, but when I run it as a
cgi, it complains abt
> > > unable to load some library. I added
/opt/sybase/lib to the
> > > LD_LIBRARY_PATH in the %ENV from the
program but that didnt work. what
> > > else can I do?
> > > tia,
> > > murali
> >
> > Add this somewhere in your Perl code:
> >
> > BEGIN {
> > $ENV{LD_LIBRARY_PATH}
='/opt/sybase/lib';
> > }
> >
> > That way, the var gets set as the very first thing,
before anything else
> > gets executed.
> >
> > If that doesn't work, write a shell (csh, bash, or
whatever you use)
> > script to set the variable first and then call your
Perl script.
> >
> > Dan Wilga dwilgaREMOVE@mtholyoke.edu
> > ** Remove the REMOVE in my address address
to reply reply **
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 20 Jun 1999 15:12:07 +0200
From: "Armin S. A. Roehrl" <Armin.Roehrl@epfl.ch>
Subject: Perl 2 C translator available?
Message-Id: <376CE8A7.4D30393D@epfl.ch>
Dear Perl experts,
suppose you got some Perl code -- too much to code it by hand into
C, but would like to have a speed - up , o.k. if it's much less than
hand-coded
C code.
I did a quick scan on the web, but didn't find any pointers. Is there
sth. like
a Perl-to-C translator?
Do you have any book/links/online articles suggestions concerning Perl
speed/performing
issues.
Thanks a lot for your input,
Armin
------------------------------
Date: Sun, 20 Jun 1999 07:56:18 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl 2 C translator available?
Message-Id: <Pine.GSO.4.02A.9906200755520.20762-100000@user2.teleport.com>
On Sun, 20 Jun 1999, Armin S. A. Roehrl wrote:
> Subject: Perl 2 C translator available?
> Do you have any book/links/online articles suggestions concerning Perl
> speed/performing issues.
See the FAQ. Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sun, 20 Jun 1999 07:33:08 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl Script Help
Message-Id: <Pine.GSO.4.02A.9906200732170.20762-100000@user2.teleport.com>
On Thu, 17 Jun 1999, Corgi-lover wrote:
> Subject: Perl Script Help
Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.
http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post
> I used a Perl editor but whatever small change I implement I get an error
> message from my server.
When you're having trouble with a CGI program in Perl, you should first
look at the please-don't-be-offended-by-the-name Idiot's Guide to solving
such problems. It's available on CPAN.
http://www.perl.com/CPAN/
http://www.perl.org/CPAN/
http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
http://www.perl.org/CPAN/doc/manual/html/pod/
Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sun, 20 Jun 1999 13:23:34 +0100
From: "Bruce Davidson" <bruce.d@btinternet.com>
Subject: Remote Scripting
Message-Id: <7kim2c$en7$1@uranium.btinternet.com>
Looking for help in using the RS callback function in an ASP to display
results of PerlScript ADO database output on the page from which it was
called. Anyone using RS willing to help appreciated.
Thanks
------------------------------
Date: Sun, 20 Jun 1999 10:04:48 GMT
From: Herwig Seitz <office@cocotime.com>
Subject: resize pics
Message-Id: <376CBD1A.AD904E8@cocotime.com>
Hi!
I=B4m looking for a perl script to resize gifs and jpgs.
I wanna make thunbnails automatically.
I found a solution with the GIMP module but is there a faster or easier
solution???
cu hs
=
-------------------------------
Herwig Seitz
office@cocotime.com
http://www.cocotime.com
-------------------------------
place your free ad right now...
-------------------------------
------------------------------
Date: Sun, 20 Jun 1999 15:00:31 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: resize pics
Message-Id: <377101c3.15220070@news.demon.co.uk>
On Sun, 20 Jun 1999 10:04:48 GMT, Herwig Seitz <office@cocotime.com>
wrote:
>Hi!
>
>I4m looking for a perl script to resize gifs and jpgs.
>I wanna make thunbnails automatically.
>
>I found a solution with the GIMP module but is there a faster or easier
>solution???
Randal Schwartz covered something very much like this in one of his
columns for Web Techniques. You can read the article online at
<http://www.stonehenge.com/merlyn/WebTechniques/col29.html>
and see the accompanying code at
<http://www.stonehenge.com/merlyn/WebTechniques/col29.listing.txt>
hth,
Dave...
--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>
------------------------------
Date: Sun, 20 Jun 1999 07:51:13 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: SMTP
Message-Id: <Pine.GSO.4.02A.9906200740120.20762-100000@user2.teleport.com>
On Sun, 20 Jun 1999, GiN wrote:
> Hi, i'm working on a e-mail client
> but i have some problems with the protocol (RFC 821 SMTP) i think
We went through this a few days ago. If your trouble is with the protocol,
check the docs, FAQs, and newsgroups related to the protocol.
When you are having troubles with Perl, _then_ you should check the docs,
FAQs, and newsgroups related to Perl. You are not having troubles with
Perl - you are having problems with the protocol.
> this is a part of the program
> it works on some mailservers but not all
That means that this is not a Perl problem. Almost certainly either your
program or some mailservers are not properly following the protocol, or
you've got the wrong idea of what it means for it to 'work'. But your
program is doing what you wanted it to do, as far as Perl is concerned.
> ( i know there is a module, but i don't want to use it)
You could check it out to see what it's doing differently than you are.
>From looking quickly through your code, I don't see that you have done
anything to change the suspect code I pointed out to you the first time.
Maybe you should look into that - my message may have been more helpful
than you realized.
Good luck with it!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 19 Jun 1999 19:47:36 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Sort
Message-Id: <slrn7moeh4.ch1.abigail@alexandra.delanet.com>
Matt (splinter@monmouth.com) wrote on MMCXVIII September MCMXCIII in
<URL:news:7kh50g$7ac$1@news.monmouth.com>:
.. Hi,
..
.. I ran a sort on a series of numbers...specifcally
..
.. 100, 101, 123, and 55
..
.. They were in the order 101, 100, 123, 55
.. After they were sorted: 100, 101, 123, 55
..
.. Why didn't the 55 come first?
Because you didn't read the manual.
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
-----------== 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: 20 Jun 1999 09:38:25 GMT
From: jimtaylor5@aol.com (Jimtaylor5)
Subject: time question
Message-Id: <19990620053825.01034.00001207@ng-fb1.aol.com>
I hope this is not really a dumb question, but I've been trying to figure out
how to get seconds from localtime (or anywhere) to calculate how long a task
takes. How would I get the time in seconds from Perl, in order to say this task
to 11 seconds or whatever it took. I know how to calculate it, jut not how to
get the time in seconds. Can anyone help?
------------------------------
Date: Sun, 20 Jun 1999 11:19:29 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: time question
Message-Id: <376ecd8d.1851572@news.demon.co.uk>
On 20 Jun 1999 09:38:25 GMT, jimtaylor5@aol.com (Jimtaylor5) wrote:
>I hope this is not really a dumb question, but I've been trying to figure out
>how to get seconds from localtime (or anywhere) to calculate how long a task
>takes. How would I get the time in seconds from Perl, in order to say this task
>to 11 seconds or whatever it took. I know how to calculate it, jut not how to
>get the time in seconds. Can anyone help?
It's only a dumb question because the answer is sitting on whatever
computer you run Perl on. The free docs that come with Perl are one of
the best sets of documentation that you'll find for any programming
language. If you didn't find the answer to your question by searching
the docs for 'time' or 'seconds', I'd be genuinely interested to know
exactly what could be done to make it any easier for you.
hth,
Dave...
p.s. perldoc -f time
--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>
------------------------------
Date: 20 Jun 1999 06:54:12 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: writing at mark from print
Message-Id: <376ce474@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc, "Oreg Dixie" <maistro@swi.hu> writes:
:Because print "me@domain.net"; doesn't work.
What part of
In string, @domain now must be written as \@domain
didn't you understand?
--tom
--
Sometimes when you fill a vacuum, it still sucks. --Rob Pike
------------------------------
Date: 20 Jun 1999 00:05:07 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: writing at mark from print
Message-Id: <slrn7motju.ch1.abigail@alexandra.delanet.com>
Oreg Dixie (maistro@swi.hu) wrote on MMCXVIII September MCMXCIII in
<URL:news:7kg26g$g9k$1@pollux.matav.net>:
``
`` How can I write out @-mark from print?
``
`` Because print "me@domain.net"; doesn't work.
Doesn't work? In which sense? Did you use -w? Please do, and a lot will
be revealed.
Abigail
--
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
-----------== 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: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 V8 Issue 6065
**************************************