[11272] in Perl-Users-Digest
Perl-Users Digest, Issue: 4872 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Feb 11 15:07:30 1999
Date: Thu, 11 Feb 99 12:00:23 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 11 Feb 1999 Volume: 8 Number: 4872
Today's topics:
"cloning" tied hashes <bmb@ginger.libs.uga.edu>
ActiveState GDBM or Equivalent? <jdkane@akanewmedia.com>
Re: bareword "stdin" not allowed? x86 perl bug? <jdf@pobox.com>
Re: Calculate yesterdays date droby@copyright.com
Re: Calculate yesterdays date (Abigail)
Re: cannot run *.pl on browser <stevenhenderson@prodigy.net>
Re: Comments in Perl code <jim.michael@gecm.com>
Re: Comments in Perl code (Larry Rosler)
Re: Connecting to a passwd protected web site (Larry Martell)
Re: Connecting to a passwd protected web site (Larry Martell)
Re: Converting CSV to LDIF droby@copyright.com
Deleting array elements while looping through... dhosek@webley.com
Re: Deleting array elements while looping through... <ludlow@us.ibm.com>
Re: Deleting array elements while looping through... (Larry Rosler)
displaying images in directory <webmaster@macdaddyusa.com>
How to determine if binary info in a string (Michael Shavel)
Parenthetical Expressions <thollowe@opentext.com>
parseInt(number ,10) bababozorg@aol.com
parseInt bababozorg@aol.com
Re: Perl 'zine <jjarrett@ecpi.com>
Perl 5.002 compile on NT? <bbarnes@dev.tivoli.com>
perl5 release mduwjd@maersk.com
Re: perl5 release (Ilya Zakharevich)
Re: perl5 release <ludlow@us.ibm.com>
Re: Problems with shell parsing of exec. (Ilya Zakharevich)
Regexp Query <tory1@IDT.NET>
Running script locally in browser <swanbria@egr.msu.edu>
Re: Serialline <jdf@pobox.com>
Re: strict dturley@pobox.com
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 11 Feb 1999 11:01:22 -0500
From: Brad Baxter <bmb@ginger.libs.uga.edu>
Subject: "cloning" tied hashes
Message-Id: <Pine.A41.4.02.9902111043580.25262-100000@ginger.libs.uga.edu>
I have implemented a TIEHASH class the details of which may or may not be
important. I am tie'ing %sgmlrecs1 in such a way that it interfaces an
8000+ record file. I am tie'ing %sgmlrecs2 (using the same class) in such
a way that it creates a new file.
Using the first block of code, from 2 to 6 of the 8000+ keys generate
calls to the STORE method in which the third parameter (the value) is
undefined. The second block of code does not do this. Is there a
known problem doing block 1) with two tied hashes?
1) %sgmlrecs2 = %sgmlrecs1;
2) while( my( $key, $val ) = each %sgmlrecs1 ) {
$sgmlrecs2{ $key } = $val;
}
Thanks,
-Brad
------------------------------
Date: Thu, 11 Feb 1999 12:53:07 -0500
From: John Kane <jdkane@akanewmedia.com>
Subject: ActiveState GDBM or Equivalent?
Message-Id: <36C31903.28202326@akanewmedia.com>
Can anyone tell me if a GDBM hash file module (or equivalent) exists for
ActiveState PERL on the Windows platform?
SDBM (and others) limit the hash value to 1000 characters. GDBM on UNIX
allows much larger values. I want to use a hash file that allows large
values on the windows platform.
Thanks.
-- John
------------------------------
Date: 11 Feb 1999 19:08:29 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: foobar678@my-dejanews.com
Subject: Re: bareword "stdin" not allowed? x86 perl bug?
Message-Id: <m3socczuch.fsf@joshua.panix.com>
foobar678@my-dejanews.com writes:
> $parse = new SGMLS (STDIN);
Try
$parse = SGMLS->new(\*STDIN); # I prefer this
or
$parse = new SGMLS \*STDIN; # I find it obscure...
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Thu, 11 Feb 1999 18:33:32 GMT
From: droby@copyright.com
Subject: Re: Calculate yesterdays date
Message-Id: <79v7pt$9f8$1@nnrp1.dejanews.com>
In article <36C1D80E.4893@jpmorgan.com>,
"Michael D. Hofer" <mhofer@jpmorgan.com> wrote:
> M.J.T. Guy wrote:
> >
> > Jarkko Hietaniemi <jhi@alpha.hut.fi> wrote:
> > >
> > >Peter Webb <Peter.Webb@cern.ch> writes:
> > >
> > >> Is there a quick way of calculating yesterdays date?
> > >
> > >localtime(time()-86400)
> >
> > As I keep repeating, that will give wrong answers for two hours each year
> > (in most places).
> >
> > Mike Guy
>
> Luckily, neither of those hours span a month boundary (at least in the
> USA), so by comparing the day-of-the-month of both dates you can
> determine if you are playing with a ST/DT cusp.
Even if they do span a month boundary, you can compare weekday of both to
accomplish the same.
--
Don Roby
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 11 Feb 1999 19:21:27 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Calculate yesterdays date
Message-Id: <79vajn$gk2$1@client2.news.psi.net>
Russ Allbery (rra@stanford.edu) wrote on MCMXC September MCMXCIII in
<URL:news:ylu2wtbqbn.fsf@windlord.stanford.edu>:
||
|| windlord:~> perl -MDate::Manip -e'print join ("\n", keys %INC, "")'
|| integer.pm
|| Cwd.pm
|| Carp.pm
|| Exporter.pm
|| strict.pm
|| Date/Manip.pm
||
|| Why on earth is a date manipulation module loading Cwd?
You're lucky....
$ perl -MDate::Manip -wle '$, = "\n"; print keys %INC'
Symbol.pm
Carp.pm
Fcntl.pm
IO/File.pm
IO.pm
Exporter.pm
strict.pm
vars.pm
integer.pm
Cwd.pm
AutoLoader.pm
SelectSaver.pm
Date/Manip.pm
DynaLoader.pm
IO/Handle.pm
IO/Seekable.pm
$
Any, to answer your question, Date::Manip calls 'cwd'. Although there's
a comment saying: I'd like to get rid of the call to cwd (which does `pwd`).
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
------------------------------
Date: Thu, 11 Feb 1999 10:15:56 -0600
From: "Steven T. Henderson" <stevenhenderson@prodigy.net>
Subject: Re: cannot run *.pl on browser
Message-Id: <f7Fw2.52587$641.74376@news.san.rr.com>
-OR-
your headers could be wrong. If the browser does not detect the correct
first couple of lines of output, it assumes it is some kind of file to be
downloaded. for save this program as blah.pl in your cgi-bin directory:
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE></TITLE></HEAD><BODY>\n";
print "blah, blah, blah<br>";
print "</BODY></HTML>";
and run it by using something like: http://localhost/cgi-bin/blah.pl
Steve Linberg wrote in message ...
>In article <1999Feb11.160651.23332@leeds.ac.uk>, oyhpeen@bigfoot.com
>(Chris Ow Yong) wrote:
>
>> I am using Win95. I have written a simple perl script which incorporates
>> cgi.pm. When I run *.pl on the web browser(IE3), the web browser keeps
>popping
>> out the save to or open window. Please help.
>
>Browsers don't run Perl. You need a server.
>
>Read the CGI.pm docs, and you will see how you can simulate running your
>script under a server while you see about setting one up.
>
>--
>Steve Linberg, Systems Programmer &c.
>National Center on Adult Literacy, University of Pennsylvania
>email: <linberg@literacy.upenn.edu>
>WWW: <http://www.literacyonline.org>
------------------------------
Date: Thu, 11 Feb 1999 13:17:15 -0500
From: Jim Michael <jim.michael@gecm.com>
Subject: Re: Comments in Perl code
Message-Id: <36C31EAB.32D0@gecm.com>
Ala Qumsieh wrote:
> Yeah .. it's extremly simple ..
>
> % perl -pi.bak -e 's/\#.*$//' file.pl
file.pl:
if ($test =~ /^#tree/) { # look for the hash tree
E:\>perl -pi.bak -e "s/\#.*$//" file.pl
E:\>type file.pl
if ($test =~ /^
Oops, maybe not so simple ;-)
Cheers,
Jim
--
------------------------------
Date: Thu, 11 Feb 1999 11:15:52 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Comments in Perl code
Message-Id: <MPG.112ccc415d16f31a989a20@nntp.hpl.hp.com>
In article <MPG.112c1a2c2cc3ac84989a1d@nntp.hpl.hp.com> on Wed, 10 Feb
1999 22:36:08 -0800, Larry Rosler <lr@hpl.hp.com> says...
...
> Consider the following (probably partial) list of ways in which it will
> go astray:
>
> '#' within a string literal: 'x#y'
> '#' as a string-literal quote delimiter: q#foo#
> '#' as a regex delimiter: m#bar#
Oh, yes.
$#array for array size
# in format for numeric field
Any others?
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Thu, 11 Feb 1999 18:23:13 GMT
From: larrym@imsi.com (Larry Martell)
Subject: Re: Connecting to a passwd protected web site
Message-Id: <79v768$4l0@titan.imsi.com>
In article <83iud9nqg7.fsf@vcpc.univie.ac.at>,
Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at> wrote:
>Re: Connecting to a passwd protected web site, Larry
><larrym@imsi.com> said:
>
>Larry> I have inherited some code that retrieves a
>Larry> page from a web site. It does it all by brute
>Larry> force, calling gethostbyname, socket,
>Larry> connect, etc. Now, that site is passwd
>Larry> protected, and the script fails, getting back
>Larry> "HTTP/1.0 401 Unauthorized". We do have a
>Larry> login and passwd, and can get in with a
>Larry> browser, but how can I modify this script so
>Larry> that it can login and access the site?
>go to http://www.w3.org/ and look up the HTTP
>protocol spec. on how to deal with Basic
>authentication.
OK, I've done that, and it looks like I have to send:
"Authorization: credentials" after the request. But I'm not sure of the
syntax. Currently the script sends:
GET url HTTP/1.0
So I modified it to send:
Authorization: user:passwd
after the GET line; I've tried every variation I could think of, but I
always get back "HTTP/1.0 401 Unauthorized"
What is the syntax for that?
>perldoc LWP
>
>to see how to handle such authentication in a clean,
>abstract fashion.
Yes, I know about that, but they don't have libwww installed, and I don't
want to get into that - I just want to add the one needed line to this
script and move on.
Thanks,
larry
------------------------------
Date: Thu, 11 Feb 1999 19:05:56 GMT
From: larrym@imsi.com (Larry Martell)
Subject: Re: Connecting to a passwd protected web site
Message-Id: <79v9mc$4pk@titan.imsi.com>
In article <79v768$4l0@titan.imsi.com>, Larry Martell <larrym@imsi.com> wrote:
>In article <83iud9nqg7.fsf@vcpc.univie.ac.at>,
>Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at> wrote:
>>Re: Connecting to a passwd protected web site, Larry
>><larrym@imsi.com> said:
>>
>>Larry> I have inherited some code that retrieves a
>>Larry> page from a web site. It does it all by brute
>>Larry> force, calling gethostbyname, socket,
>>Larry> connect, etc. Now, that site is passwd
>>Larry> protected, and the script fails, getting back
>>Larry> "HTTP/1.0 401 Unauthorized". We do have a
>>Larry> login and passwd, and can get in with a
>>Larry> browser, but how can I modify this script so
>>Larry> that it can login and access the site?
>
>>go to http://www.w3.org/ and look up the HTTP
>>protocol spec. on how to deal with Basic
>>authentication.
>OK, I've done that, and it looks like I have to send:
>"Authorization: credentials" after the request. But I'm not sure of the
>syntax. Currently the script sends:
>
>GET url HTTP/1.0
>
>So I modified it to send:
>
>Authorization: user:passwd
>
>after the GET line; I've tried every variation I could think of, but I
>always get back "HTTP/1.0 401 Unauthorized"
>
>What is the syntax for that?
I've read furthur, and I now see that I should send:
Authorization: Basic user:passwd
where the user:passwd portion is coverted to base64.
Thanks,
-larry
------------------------------
Date: Thu, 11 Feb 1999 18:07:47 GMT
From: droby@copyright.com
Subject: Re: Converting CSV to LDIF
Message-Id: <79v699$825$1@nnrp1.dejanews.com>
In article <79sfj6$rko$1@nnrp1.dejanews.com>,
dragnovich@my-dejanews.com wrote:
> Hhhooooooooo!! thats a DIF file!
>
Oh?
> Well if you JUST want to convert it from CSV or TXT(in Tab Separated Format)
> to DIF (or LDIF) open your excel program and open and export the data base to
> DIF format! =-)
>
> But if you want to make a Perl program that converts from CVS to DIF that will
> be a problem! Because you have to learn the DIF format.
>
> Ok For every body that wants to program in DIF format or in CSV or IN ANY
> KNOWN WAY OF DATA SHEETS go here http://www.wotsit.org/ and in the database
> section you can find how to read/save files even in excel! wow! hahahaha
> (well if you can understand the excel standard! is sucks!)
>
All good advice if we were talking about a DIF file.
I think we're not.
The wotsit site is indeed a good resources, but it doesn't seem to know LDIF.
Perhaps that's because LDIF is pretty new, and not yet standardized.
As noted elsewhere in this thread, LDIF is a data interchange format used by
LDAP, a directory access protocol derived from the X.500 ISO standard. LDIF
will someday be defined by an IETF standard (aka RFC). Right now, it's in
draft and should be regarded as a "work in progress".
The latest Internet draft on LDIF can be found at
http://search.ietf.org/internet-drafts/draft-good-ldap-ldif-02.txt
and was just put there on Feb 1.
Further info on LDAP (and probably LDIF as well) is available at
http://www.umich.edu/~dirsvcs/ldap.
But we digress... ;-)
--
Don Roby
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 11 Feb 1999 18:18:50 GMT
From: dhosek@webley.com
Subject: Deleting array elements while looping through...
Message-Id: <79v6tt$8mm$1@nnrp1.dejanews.com>
Programmatically it's really not a problem:
$j=0;
ENTRY: for(@test) {
if ($_ meets deletion criteria) {
@test=(@test[0..$j-1],$test[$j+1..$#test]);
redo ENTRY;
}
$j++;
}
Questions: Am I really as bullet-proof as I think I am? Is there a more
efficient way to delete the $j'th element of @test? Does this save memory? It
occurs to me that this may actually just waste memory and I'd be better off
simply marking array entries as invalid...
-dh
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 11 Feb 1999 12:46:17 -0600
From: James Ludlow <ludlow@us.ibm.com>
Subject: Re: Deleting array elements while looping through...
Message-Id: <36C32579.472C9688@us.ibm.com>
dhosek@webley.com wrote:
>
> Programmatically it's really not a problem:
>
> $j=0;
> ENTRY: for(@test) {
> if ($_ meets deletion criteria) {
> @test=(@test[0..$j-1],$test[$j+1..$#test]);
> redo ENTRY;
> }
> $j++;
> }
>
> Questions: Am I really as bullet-proof as I think I am? Is there a more
> efficient way to delete the $j'th element of @test? Does this save memory? It
> occurs to me that this may actually just waste memory and I'd be better off
> simply marking array entries as invalid...
I think I see what you're trying to do. Perhaps grep would serve you
better.
@test = grep { ! deletion criteria } @test;
--
James Ludlow (ludlow@us.ibm.com)
(Any opinions expressed are my own, not necessarily those of IBM)
------------------------------
Date: Thu, 11 Feb 1999 11:11:50 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Deleting array elements while looping through...
Message-Id: <MPG.112ccb4cf4e2074989a1f@nntp.hpl.hp.com>
[Posted and a courtesy copy mailed.]
In article <79v6tt$8mm$1@nnrp1.dejanews.com> on Thu, 11 Feb 1999
18:18:50 GMT, dhosek@webley.com <dhosek@webley.com> says...
> Programmatically it's really not a problem:
>
> $j=0;
> ENTRY: for(@test) {
> if ($_ meets deletion criteria) {
> @test=(@test[0..$j-1],$test[$j+1..$#test]);
> redo ENTRY;
> }
> $j++;
> }
>
> Questions: Am I really as bullet-proof as I think I am? Is there a more
> efficient way to delete the $j'th element of @test? Does this save memory? It
> occurs to me that this may actually just waste memory and I'd be better off
> simply marking array entries as invalid...
Don't do it with array slices. Use 'splice'. There was a thread here
about that two weeks ago. Read it!
http://x7.dejanews.com/[ST_rn=ps]/getdoc.xp?AN=438084869
Re: Help on deleting an item in an array?
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Thu, 11 Feb 1999 10:29:25 -0800
From: dan <webmaster@macdaddyusa.com>
Subject: displaying images in directory
Message-Id: <36C32185.4852BB71@macdaddyusa.com>
is there a way to display every image in a directory on a web page?
thanks
------------------------------
Date: Thu, 11 Feb 1999 14:20:17 -0400
From: mshavel@erols.com (Michael Shavel)
Subject: How to determine if binary info in a string
Message-Id: <mshavel-1102991420170001@130.9.16.207>
Hi
This seems simple but I am having problems with it. I need to determine if
there is any binary info within a given string. It seems like pack and/or
unpack are needed but I can't figure out how to use them. Or is it
something else entirely. The only way I can figure it out now is to check
the string against every Character I DO want in the string (ASCII
friendly) but that is very messy.
All suggestions are welcome. I know there must be a simple way to do this.
Thanks very much to all.
Michael Shavel
mshavel@erols.com
------------------------------
Date: Thu, 11 Feb 1999 19:09:21 GMT
From: "Skip Hollowell" <thollowe@opentext.com>
Subject: Parenthetical Expressions
Message-Id: <BVFw2.2181$rs2.2245583@client.news.psi.net>
I have some data that I am parsing, and have come upon a unique situation.
I need to remove any parenthetical information from my data
This is (a parenthetical expression) to be deleted
would become
This is to be deleted
And for fun, there occasionally will be no right paren
This is (a parenthetical expression
would become
This is
Any ideas on where to start. I know pattern matching and such, but I can't
seem to get the
wildcards for this to behave just quite right, and I haven't even thought of
a safe way to do the
second part.
Thanks.
Skip Hollowell
thollowe@opentext.com
------------------------------
Date: Thu, 11 Feb 1999 18:36:25 GMT
From: bababozorg@aol.com
Subject: parseInt(number ,10)
Message-Id: <79v7v8$9qh$1@nnrp1.dejanews.com>
hello
there is a function in javascript :
parseInt(number ,10)
which returnes a numbers less than a "10" or any number you want.
i am looking for a similar function in cgi?
can you help please?
thanks
hamed
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 11 Feb 1999 18:42:55 GMT
From: bababozorg@aol.com
Subject: parseInt
Message-Id: <79v8bc$a28$1@nnrp1.dejanews.com>
hi
there is a function in javascript:
parseInt(number ,10)
which give me a number less than "10" or any number i want!
i am looking for the similar function in perl
can you help me please
thanks
hamed
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 11 Feb 1999 13:39:35 -0500
From: "John T. Jarrett" <jjarrett@ecpi.com>
Subject: Re: Perl 'zine
Message-Id: <36C323E7.E065DF59@ecpi.com>
It's unanimous - all voters agree - don't waste any $ on glossy!
(what, at least a part of 1% representation of perl community)
John
------------------------------
Date: Thu, 11 Feb 1999 10:34:09 -0600
From: "Brian P. Barnes" <bbarnes@dev.tivoli.com>
Subject: Perl 5.002 compile on NT?
Message-Id: <36C30680.E6D72E68@dev.tivoli.com>
Hi,
I really like Perl and have used it for years. I compiled it on my Sun
box with basically 4 commands per module. A 4th grader could do it after
glancing at the instructions.
On my NT box, I currently use ActiveState Perl due to severs compiling
difficulties on NT, but I want to compile it from source like the real
hackers do. I want to add many modules, some of which I understand are
not binarily compatible with ActiveState.
I have downloaded the latest, stable Perl (p500502) and have vc++ 5.0
and am using the "cmd" shell as recommended in the readme.win32. I have
edited the win32/makefile.mk as follows (and checked the accuracy of
CCHOME):
D:\download\p500502\win32>diff makefile.mk makefile.mk.021199
20c20
< INST_DRV *= d:
---
> INST_DRV *= c:
43,44c43,44
< CCTYPE *= MSVC
< #CCTYPE *= BORLAND
---
> #CCTYPE *= MSVC
> CCTYPE *= BORLAND
66c66
< USE_PERLCRT *= define
---
> #USE_PERLCRT *= define
104,105c104
< #CCHOME *= C:\bc5
< CCHOME *= d:\DevStudio\vc
---
> CCHOME *= C:\bc5
D:\download\p500502\win32>ls d:\DevStudio\vc
ENVIRON.HTM VCRemove crt lib
VCREAD.HTM atl help mfc
VCREMOVE.EXE bin include vcremove.inf
I have run the vcvars32.bat file and verified that the variables are
indeed set. When I try the nmake,
I immediately get this error.
D:/download/p500502/win32>D:/DevStudio/VC/bin/nmake
Microsoft (R) Program Maintenance Utility Version 1.62.7022
Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
makefile(11) : fatal error U1035: syntax error : expected ':' or '='
separator
Stop.
Any ideas?
Thank you,
Brian
------------------------------
Date: Thu, 11 Feb 1999 19:08:02 GMT
From: mduwjd@maersk.com
Subject: perl5 release
Message-Id: <79v9q8$bj2$1@nnrp1.dejanews.com>
I know we are using perl version 5 but how do I find out what the release
level is ?
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 11 Feb 1999 19:48:21 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: perl5 release
Message-Id: <79vc65$o6e$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to
<mduwjd@maersk.com>],
who wrote in article <79v9q8$bj2$1@nnrp1.dejanews.com>:
>
>
> I know we are using perl version 5 but how do I find out what the release
> level is ?
This is very easy. If
perl --version
does not work, you have a very old release.
Ilya
P.S. In fact this gives *some* answer even with 4.036.
------------------------------
Date: Thu, 11 Feb 1999 13:46:10 -0600
From: James Ludlow <ludlow@us.ibm.com>
Subject: Re: perl5 release
Message-Id: <36C33382.91858207@us.ibm.com>
mduwjd@maersk.com wrote:
>
> I know we are using perl version 5 but how do I find out what the release
> level is ?
perl -v
--
James Ludlow (ludlow@us.ibm.com)
(Any opinions expressed are my own, not necessarily those of IBM)
------------------------------
Date: 11 Feb 1999 18:10:59 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Problems with shell parsing of exec.
Message-Id: <79v6fj$kla$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Abigail
<abigail@fnx.com>],
who wrote in article <79laoe$lnp$1@client2.news.psi.net>:
> () exec("$BinaryExe 1>$stdoutfile 2>$stderrfile");
> Well, how do you expect shell interpretation of special characters is
> going to happen, without starting up a shell?
I hope 5.005_55 will contain my patch which will do shell-less 2>&1
(at least on EMX/RSX platforms). I'm also preparing a patch which
does a conservative processing of "" and '' (and simplest
backslash-escapes - I'm afraid that different sh-shells may have
different rules).
I see no reason why these patches cannot be combined to cover
redirections too.
Ilya
------------------------------
Date: 11 Feb 1999 19:39:54 GMT
From: James Frogel <tory1@IDT.NET>
Subject: Regexp Query
Message-Id: <79vbma$kl8@nnrp4.farm.idt.net>
------------------------------
Date: 11 Feb 1999 07:55:07 GMT
From: Brian Dean Swan <swanbria@egr.msu.edu>
Subject: Running script locally in browser
Message-Id: <79u2cr$b2o$1@msunews.cl.msu.edu>
I have successfully written some Perl scripts and tested them on a remote server and from the command line. I am unable to view them in my browser. All I get is the script in text form as if I asked to see the source. I seen another entry which suggested mime type problem. I don't see where this would cause a problem. I am using Linux kernel 2.0.36 and I am somewhat new to it. I am familiar with the basics of the OS, but anything more than the basics may need some explanation. I am using Perl 5.004
. I should extrapolate and say that I cannot view them via my browser locally, but I can browse to them on a remote server and run them fine. Please reply via e-mail to swanbria@pilot.msu.edu.
Thank you in advance for your help, it is GREATLY appreciated.
Brian D. Swan
------------------------------
Date: 11 Feb 1999 19:11:44 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: Janko Dimitroff <janko@cs.tu-berlin.de>
Subject: Re: Serialline
Message-Id: <m3pv7gzu73.fsf@joshua.panix.com>
Janko Dimitroff <janko@cs.tu-berlin.de> writes:
> I just want to check the serial line constantly.
There are two distinct perl builtins called select(). You want the
four-argument version, which calls the select(2) system call.
perldoc -f select
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Thu, 11 Feb 1999 19:30:36 GMT
From: dturley@pobox.com
Subject: Re: strict
Message-Id: <79vb4s$cp0$1@nnrp1.dejanews.com>
In article <m1zp6lhtde.fsf@halfdome.holdit.com>,
merlyn@stonehenge.com (Randal L. Schwartz) wrote:
>but I have a hard time
> believing that people expect *no* usable docs to come with a tool,
But you don't use many Microsloth products do you? :-)
--
____________________________________
David Turley
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
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 4872
**************************************