[16548] in Perl-Users-Digest
Perl-Users Digest, Issue: 3960 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Aug 9 09:05:38 2000
Date: Wed, 9 Aug 2000 06:05:18 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <965826318-v9-i3960@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Wed, 9 Aug 2000 Volume: 9 Number: 3960
Today's topics:
Re: ??? <flavell@mail.cern.ch>
[Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
Able to install DBI and DBD::ODBC in Windows 95 platfor <windy_boyNOwiSPAM@mail.com.invalid>
beginner problem (3)
Re: beginner problem <uackermann@orga.com>
Re: CGI / Pearl Interfacing w/ Dos Program Question (Mark P.)
CGI.pm documentation, was Re: CGI.PM How to get all For <flavell@mail.cern.ch>
cleaning shell screen <jhijas@yahoo.es>
Commenting portions of code <jhijas@yahoo.es>
Re: Commenting portions of code (Marcel Grunauer)
Re: Commenting portions of code <flavell@mail.cern.ch>
Re: Convert URLs to links <abuse@localhost.com>
Re: Converting from US dates/numbers to European dates/ <godzilla@stomp.stomp.tokyo>
Re: Converting from US dates/numbers to European dates/ <nick.condonNOniSPAM@barclayscapital.com.invalid>
Re: Converting from US dates/numbers to European dates/ <samara_biz@hotmail.com>
Re: Dereferencing correctly in regular expressions <elephant@squirrelgroup.com>
Re: Difference between a .cgi file and a .pl file? <flavell@mail.cern.ch>
Downloadable 5.6 documentation in HTML ajmayo@my-deja.com
Re: Executing Unix commads on a IIS request <Peter.Dintelmann@dresdner-bank.com>
Re: Expert advise needed (Mark P.)
Extracting string between XML tag pair from file <Sasa.Danicic@eurodyn.com>
Re: Extracting string between XML tag pair from file (Marcel Grunauer)
files transferred by socket? ()
Generated or received a file descriptor number that is mahesha@nital.stpp.soft.net
Re: GREP - type of script... (Rafael Garcia-Suarez)
Re: GREP - type of script... <bart.lateur@skynet.be>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 9 Aug 2000 13:15:58 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: ???
Message-Id: <Pine.GHP.4.21.0008091315480.23130-100000@hpplus03.cern.ch>
On Wed, 9 Aug 2000 vagabond_nomad@my-deja.com wrote:
> Why aren't any of my messages appearing?
Am I dreaming?
------------------------------
Date: Wed, 09 Aug 2000 10:22:30 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage965816641.25469@news.teleport.com>
Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 29 Apr 2000
[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last _major_ update of the Perl FAQ was in Summer
of 1998; of course, ongoing updates are made as needed. ]
For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).
http://www.cpan.org/doc/FAQs/
Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.
For an alternative way to get answers, check out the Perlfaq website.
http://www.perlfaq.com/
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.
perldoc perlfaq
man perlfaq
If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.
If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.
http://www.cpan.org/
http://www.perl.com/CPAN/
http://www.cpan.org/doc/FAQs/FAQ/html/
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/
You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)
California ftp://ftp.cdrom.com/pub/perl/CPAN/
Texas ftp://ftp.metronet.com/pub/perl/
South Africa ftp://ftp.is.co.za/programming/perl/CPAN/
Japan ftp://ftp.dti.ad.jp/pub/lang/CPAN/
Australia ftp://cpan.topend.com.au/pub/CPAN/
Netherlands ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
Switzerland ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
Chile ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/
If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.
Have fun with Perl!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 09 Aug 2000 05:55:28 -0700
From: windy_boy <windy_boyNOwiSPAM@mail.com.invalid>
Subject: Able to install DBI and DBD::ODBC in Windows 95 platform Anyone?
Message-Id: <1c68a0c8.8fdac1b6@usw-ex0107-049.remarq.com>
Hi,
I was wondering if anyone has been successfully installed Perl
DBI and DBD::ODBC in Windows 95 platform. I tried to but it
gave me a "fatal error" after I used 'nmake'. Where can I download
'dmake' or the latest version of 'nmake'? Should I use 'ppm' instead?
If I should then how (the Perl documentation doesn't seem to help)?
Thanks a lot in advance.
Windy Boy
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
------------------------------
Date: 9 Aug 2000 12:33:44 GMT
From: dbaumann@mail1.sas.upenn.edu (3)
Subject: beginner problem
Message-Id: <8mrj38$uel$1@netnews.upenn.edu>
Just started learning perl. I have already read through the faq,
etc...but I am working with a book Elements of Programming with Perl by
Johnson. In an early chapter he give a program to search through the faq
files for help. I followed and copied it, but when I have a problem when
it runs.
##faqgrep.txt##
use strict;
my $faq_directory = 'C:\perl\html\lib\pod';
my @faq_files = ( ##various files like 'perlfaq1.pod'##);
my $pattern = SARGV[0] or die "no pattern available: $!";
foreach my $filename (@faqfiles) {
open (FILE, "$faq_directory\$filename) or die "cant open file: $!";
#####
This is most of the code but the problem is when I run the program I get
the error "cant find perlfaq1.pod in C:\perl\bin\faqgrep.txt"
...this is how I run the above program (C:\ perl C:\perl\bin\faqgrep.txt)
but I clearly identified the $faq_directory as 'C:\perl\html\lib\pod' but
for some reason it only wants to look in the directory where I call the
program "faqgrep" from. I have tried a few different syntax changes and
have decided the problem is not with the syntax...so I am at a loss??
I use active perl 5.06 on a windows 98 machine. One thing I have noticed
that doesnt seem right is that according to the book I should be able to
run perl programs (.txt files) by simply C:\ perl "program name"...but I
have to first C:\path C:\perl\bin then C:\ perl
C:\perl\bin\"filename.txt" ( I keep my files in the \bin folder.
Perhaps I have set up something incorrectly, cause it seems that the only
way for this program to find the 'perlfaq.pod' files is if I relocate
them to C:\perl\bin\faqgrep.txt ..which isnt possible?
why is perl insist on looking in the wrong folder?
------------------------------
Date: Wed, 09 Aug 2000 14:59:25 +0200
From: Ulrich Ackermann <uackermann@orga.com>
Subject: Re: beginner problem
Message-Id: <399155AD.E72CAA5F@orga.com>
3 wrote:
>
> Just started learning perl. I have already read through the faq,
> etc...but I am working with a book Elements of Programming with Perl by
> Johnson. In an early chapter he give a program to search through the faq
> files for help. I followed and copied it, but when I have a problem when
> it runs.
>
> ##faqgrep.txt##
> use strict;
> my $faq_directory = 'C:\perl\html\lib\pod';
> my @faq_files = ( ##various files like 'perlfaq1.pod'##);
> my $pattern = SARGV[0] or die "no pattern available: $!";
> foreach my $filename (@faqfiles) {
> open (FILE, "$faq_directory\$filename) or die "cant open file: $!";
^^^ ^^^
1 2
1: Is this what you want to do? Maybe a double "\" will do better here!?
2: A >"< is missing
Maybe better: open (FILE, "$faq_directory\\$filename") or die "cant open
file: $!";
Just typos?
HTH,
Ulrich
--
Ulrich Ackermann
ORGA Kartensysteme GmbH (SY-PEAT-STA)
Tel.:+49.5254.991-925
mailto:uackermann@orga.com
------------------------------
Date: Wed, 09 Aug 2000 11:50:13 GMT
From: perl@imchat.com (Mark P.)
Subject: Re: CGI / Pearl Interfacing w/ Dos Program Question
Message-Id: <39914497.237982921@news.ionet.net>
On Wed, 09 Aug 2000 00:58:58 GMT, vagabond_nomad@my-deja.com wrote:
>I am very, very, very new to CGI / Pearl, so I apologize in advance for my
>vast ignorance on this subject. My task is to find a way interface a CGI
>program with a DOS program sitting on a UNIX server. Here are the specifics:
It's Perl. This isn't an oyster.
>
>From a web browser, a user will start up a DOS program sitting on a UNIX
>server. The DOS program will send output to the user's web browser that will
>be displayed as HTML. The user will then enter some input into the web
>browser, which will then be sent back to the DOS program for processing. Next
>the DOS program will send output, based on the user's last input, back to the
>user's web browser. And so on.
And why would you attempt to run DOS on a Unix machine? (Not
that it can't be done) Don't you mean a command line program? The Unix
command line is infinately better than DOS.
>
>Is this possible? If so, can someone help me understand how to do this?
>Code examples would be greatly appreciated since I don't really understand
>much about Pearl yet. Again, I'd be tremendously thankful if someone could
>help solve this problem, or perhaps point me to a site where I might be able
>to get some help.
>
Perl can do everything you want it to do most probably.
MP
------------------------------
Date: Wed, 9 Aug 2000 13:07:35 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: CGI.pm documentation, was Re: CGI.PM How to get all Form's value
Message-Id: <Pine.GHP.4.21.0008091238100.23130-100000@hpplus03.cern.ch>
On Tue, 8 Aug 2000, brian d foy wrote:
> > > > Unfortunately, the POD that comes with CGI.pm is not as good as
> > > > the documentation at http://stein.cshl.org/WWW/CGI/.
> are you saying that there are two different branches of documentation,
Yes: the maintained HTML documentation, and the HTML-ified POD
documentation derived from the module source. See these words of a
reply from the author:
After receiving this e-mail I went and checked the CGI.pm docs, and
sure enough there is an obsolete reference to the URI: header in the
POD but not HTML documentation. Since the code doesn't do what the
POD documentation says it does, I have removed the incorrect
reference. The PerlFAQ should be updated as well.
from which it seems obvious that the "HTML documentation" and the POD
are not the same thing. See also
<Pine.GHP.4.21.0007041142530.5516-100000@hpplus03.cern.ch>
If we take for example 2.69, the HTML documentation, cgi_docs.html in
the top level subdirectory, has this near the beginning:
<H2>Abstract</H2> This perl 5 library uses objects to create Web
fill-out forms on the fly and to parse their contents. It provides a
simple interface for parsing and interpreting query strings passed to
CGI scripts. However, it also offers a rich set of functions for
creating fill-out forms. Instead of remembering the syntax for HTML
form elements, you just make a series of perl function calls. An
important fringe benefit of this is that the value of the previous
query is used to initialize the form, so that the state of the form is
preserved from invocation to invocation.
[and, shortly afterwards]
A script to create a fill-out form that remembers its state each time
it's invoked is very easy to write with CGI.pm:
#!/usr/local/bin/perl
use CGI qw(:standard);
, which you won't find in that form in the POD.
Whereas the POD begins:
=head1 SYNOPSIS
# CGI script that creates a fill-out form
# and echoes back its values.
use CGI qw/:standard/;
print header,
start_html('A Simple Example'),
, which you won't find in that form in the HTML documentation.
Throughout the POD you'll find differences in detail from the
supported HTML documentation, just as Lincoln Stein's comment
indicates, and as I reported in my previous postings.
The HTML documentation that's automatically installed with ActivePerl
is clearly an HTML-ified version of the POD, and _not_ the supported
HTML documentation itself.
The standard Perl distribution also comes with a procedure for
creating HTML-ified PODs, including the modules that are incorporated
in Perl as standard. It doesn't seem to include the "proper" CGI HTML
documentation at all. So, again, users of Perl who have not
explicitly installed CGI.pm are apparently getting "sold short" with
the POD documentation instead of the real, author-supported, HTML
documentation.
cheers
------------------------------
Date: Wed, 09 Aug 2000 14:57:27 +0200
From: Javier Hijas <jhijas@yahoo.es>
Subject: cleaning shell screen
Message-Id: <39915537.2254A8F6@yahoo.es>
How do I clean the shell screen with perl?
(i.e. not using print "\n\n\n\n\n....")
------------------------------
Date: Wed, 09 Aug 2000 12:09:38 +0200
From: Javier Hijas <jhijas@yahoo.es>
Subject: Commenting portions of code
Message-Id: <39912DE2.BB722F81@yahoo.es>
Is there any way to comment portion of code in perl in the way /*...*/
does in C, I mean not having to use # to comment every line?
------------------------------
Date: Wed, 09 Aug 2000 10:17:07 GMT
From: marcel@codewerk.com (Marcel Grunauer)
Subject: Re: Commenting portions of code
Message-Id: <slrn8p2bsj.1p6.marcel@gandalf.local>
On Wed, 09 Aug 2000 12:09:38 +0200, Javier Hijas <jhijas@yahoo.es> wrote:
>Is there any way to comment portion of code in perl in the way /*...*/
>does in C, I mean not having to use # to comment every line?
podify your comments:
$this = 'some perl code';
=for later
blah
blah
=cut
$here = 'some more perl code';
--
Marcel
sub AUTOLOAD{($_=$AUTOLOAD)=~s;^.*::;;;y;_; ;;print} Just_Another_Perl_Hacker();
------------------------------
Date: Wed, 9 Aug 2000 13:09:57 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Commenting portions of code
Message-Id: <Pine.GHP.4.21.0008091309060.23130-100000@hpplus03.cern.ch>
On Wed, 9 Aug 2000, Javier Hijas wrote:
> Is there any way to comment portion of code in perl
FAQ.
perldoc -q comment
=head1 Found in /usr/local/lib/perl5/5.00503/pod/perlfaq7.pod
=head2 How can I comment out a large block of perl code?
Use embedded POD to discard it:
[...]
------------------------------
Date: Wed, 9 Aug 2000 19:51:28 +0800
From: "multiplexor" <abuse@localhost.com>
Subject: Re: Convert URLs to links
Message-Id: <8mrg81$cpn$1@horn.hk.diyixian.com>
"." is any character and "\w" is any alphanumeric character, which doesn't
include full stop.
Just a trial:
####
$string = <<'EOC';
http://anything.net
www.anything.com
http://www.anything.net
EOC
$string =~ s!((http://|www\.)\S*)!<a href=$1>$1</a>!gi;
print $string;
####
Expression: Starts with "http://" or "www." followed by optional non-space
characters.
Protocol and domain name are case-insensitive, as I know.
Hope this helps.
"Fernando" <fm@via-rs.net> wrote
> I want to write a regular expression that search if the user supplied a
> url(http://anything.net or www.anything.com for example) in a texarea form
> and convert it to a link.
>
> I tried the following:
>
> $string =~ s/(http:\/\/.+|www\..+)/<a href=$1>$1<\/a>/g;
>
> Well, of course it failed, but if I substitute the "." for a "\w" it'll
> still not do the right job.
------------------------------
Date: Wed, 09 Aug 2000 00:30:41 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Converting from US dates/numbers to European dates/numbers
Message-Id: <399108A1.EE0855CD@stomp.stomp.tokyo>
Logan Shaw begs the issue:
(snipped begging the issue logical fallacy)
I'm not interested Mr. Shaw. I afforded
you and others an explanation only as a
courtesy being motivated by my ethics
much in the same way I afforded Mr. Rosler
an explanation for a mistake I made, which
he nor anyone else knew about, least not
till I openingly and candidly discussed
my mistake. I play rough, but I play fair
and, play to win, fairly.
This is cutting edge difference between
myself and most others here; I am upfront,
in your face and hold no fear.
There is also another cutting edge difference
between myself and another here who hides
in Coward's Shadows, donning many masks,
then sets about either abusing people here,
or using them for monetary profit. I don't
hide behind false pretenses and faces. You
always know, it's me.
Wouldn't you agree?
Godzilla!
--
We Gotta Get Out Of This Place.
http://la.znet.com/~callgirl5/getout.mid
------------------------------
Date: Wed, 09 Aug 2000 01:32:40 -0700
From: nickco <nick.condonNOniSPAM@barclayscapital.com.invalid>
Subject: Re: Converting from US dates/numbers to European dates/numbers
Message-Id: <100637b0.b2c3e409@usw-ex0101-005.remarq.com>
Penisenvy-zilla wrote:
> Hatred is not my bag no more than weenie wagging is.
Yeah, I'd noticed that about you.
BTW, I think you mean "any more" rather than "no more". Where did
your Phd in English come from, a cornflakes box?
-----------------------------------------------------------
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
------------------------------
Date: Wed, 09 Aug 2000 08:15:05 -0400
From: "Alex T." <samara_biz@hotmail.com>
Subject: Re: Converting from US dates/numbers to European dates/numbers
Message-Id: <39914B49.6879F8F0@hotmail.com>
> telling me I don't need to use a decimal
> point when I do calculations on my computer
> or my electronic calculator.
No one told you that. You made a statement that mathematicians do not
use commas as decimal points, which is a general statement and is
incorrect if you're not talking only about electronic devices, such as
computers and calculators.
> I've enjoyed eleven and twelve year old
> students in class with more smarts and
> more in touch with reality than all of you
> boys together.
My sincere congratulations. Now... how can anyone after you say
something like that take you serious anymore?
> Jeeeshhh... talk about computer addiction!
> Techno-Geekster Junkies who haven't seen
> the light of day in years!
You're assuming waaay too much. Do you know what the word "assume" is
composed of?
Alex
------------------------------
Date: Wed, 09 Aug 2000 07:15:35 GMT
From: jason <elephant@squirrelgroup.com>
Subject: Re: Dereferencing correctly in regular expressions
Message-Id: <MPG.13fba278c6f1adab9896d0@news>
Larry Rosler writes ..
>In article <MPG.13f6a77efd88fa2f9896c8@news> on Sat, 05 Aug 2000
>12:35:43 GMT, jason <elephant@squirrelgroup.com> says...
>> Larry Rosler writes ..
>
>...
>
>> >It is surprising that, when Perl interpolates a scalar into a double-
>> >quotish context, function calls or method invocations () are not
>> >evaluated, but array indexes [] or hash keys {} are evaluated (no matter
>> >how complicated they may be). Even there, whitespace between tokens,
>> >which would be ignored in an ordinary expression, inhibits the
>> >evaluation of the suffix [] or {} as other than a simple string. The
>> >same approach could have been used to disambiguate the () suffix.
>> >
>> >Perhaps someone can provide a rationale for this inconsistent situation,
>> >other than "that's the way it is".
>>
>> surely it's a simple case of - you've gotta draw the line somewhere .. I
>> mean what does
>>
>> print "if(1) { print 'abc'; }";
>>
>> end up printing if code is evaluated as well as variables being
>> interpolated ?
>
>You have jumped from the simple evaluation of a function invocation to
>the evaluation of arbitrary Perl code within a double-quoted string.
>Please don't try to wash away my question by inappropriate reductio ad
>absurdum.
*8^) .. "ad absurdum" .. should I be insulted instead of amused ? .. I
think you might have missed my point
I wasn't trying to wash anything away Larry .. I said - "I believe that
it's a simple case of - you've gotta draw the line somewhere"
the point I was making .. was that with
print "if(1) { print 'abc'; }";
you obviously don't want Perl to evaluate the code .. so .. somewhere
between the above and
print "blah $x->func() blah";
there's a line .. so you want the line drawn somewhere between the two
someone else obviously wanted the line drawn (more obviously if you ask
me) at between variable interpolation and ANY code evaluation that
wasn't directly required to interpolate a variable
>> I don't know the reason .. but in my mind there are a massive number of
>> reasons providing ample rationale for why code is not evaluated unless
>> it's in order to resolve a variable interpolation
>
>You haven't given one reason yet, IMO. Why should:
>
> "xyz$foo->('bar')xyz"
>
>be different from:
>
> "xyz$baz->[$foo->('bar')]xyz"
>
>or the equivalent hash-key calculation?
I agree .. it's an arbitrary decision .. point is that the line has to
be drawn somewhere
I think most would agree that you don't want to have to think about all
Perl keywords in a double-quoted string .. so no one (or few at least)
would want
print "print while true";
to loop forever printing $_ .. so - the line has to be drawn somewhere
on _this_ side of allowing that .. do you allow named self-defined
function calls ?
print "this is the output from \myFunc() myFunc()";
probably not .. so do you only want to provide dereferenced function
calls ?
print "$myfunc->('x')";
I think that a more obvious spot to drawn the line (it's certainly
easier to explain to a beginner) is between variable interpolation and
code evaluation .. I guess I should throw it back at you .. why bother
increasing the scope of double-quoted string evaluation ? .. already
there are tricks to have what you want .. so why change the language
when there's currently a clear distinction - that of variable
interpolation vs code evaluation ?
--
jason -- elephant@squirrelgroup.com --
------------------------------
Date: Wed, 9 Aug 2000 13:22:26 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Difference between a .cgi file and a .pl file?
Message-Id: <Pine.GHP.4.21.0008091318450.23130-100000@hpplus03.cern.ch>
On Wed, 9 Aug 2000, Tim Hammerquist wrote:
> Maybe I should have clarified: .pl IMPLIES perl script by CONVENTION.
That is indeed one possible convention. You seem to have hung too
much onto it though.
The use of filename extensions to denote the nature of the file
content is itself only _by convention_. Some OSes have other
mechanisms for doing that, like content-type fields in a file
directory entry and so on.
------------------------------
Date: Wed, 09 Aug 2000 12:34:04 GMT
From: ajmayo@my-deja.com
Subject: Downloadable 5.6 documentation in HTML
Message-Id: <8mrj3s$il4$1@nnrp1.deja.com>
As far as I can see from checking both www.cpan.org and www.perl.com,
the downloadable HTML documentation appears to refer to older releases
of Perl than 5.6 (e.g it has perldeltas for two older releases but
nothing for more recent ones).
Is this the most current documentation for 5.6 (which I would
presumably then supplement with added files), or is there a more up-to-
date copy of the documentation in HTML format available somewhere?.
Incidentally I have only recently upgraded to 5.6. There are anecdotal
reports in this group that 5.6 is 'buggy'. But given the historically
very high quality of Perl releases, does anyone feel that 5.6 is
significantly less reliable than, say 5.005_03?. I would much prefer to
use it because if nothing else, if there are problems, then these need
to be 'smoked out' by as large a user base as possible, and then
reported back.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Wed, 9 Aug 2000 09:05:01 +0200
From: "Dr. Peter Dintelmann" <Peter.Dintelmann@dresdner-bank.com>
Subject: Re: Executing Unix commads on a IIS request
Message-Id: <8mqvp9$63t1@intranews.dresdnerbank.de>
Hi,
pularis@my-deja.com schrieb in Nachricht <8mpmet$cl8$1@nnrp1.deja.com>...
> I am running IIS on NT server 4.0.As an enhancement to the server I
>want to add the functioanlity of being able to execute commands on a
>unix host ( running Solaris ) and somehow magically get the output back
>to the IIS/NT server and display the result as an HTML page.
NT includes rsh (%systemroot%\system32\rsh.exe). Create a user on
your solaris box with restricted rights and a .rhosts file containing
your
IIA host/IIS user (not writable by your user). Then wrap the supplied
unix commands into $output = qx{ rsh <host> -l <user> $cmd}; and put
the output in the HTML page to be send to the browser.
Best regards,
Peter Dintelmann
------------------------------
Date: Wed, 09 Aug 2000 12:02:39 GMT
From: perl@imchat.com (Mark P.)
Subject: Re: Expert advise needed
Message-Id: <399147e5.238828657@news.ionet.net>
On Tue, 8 Aug 2000 14:27:24 +0300, "Denys Kotseba" <kdl@softhome.net>
wrote:
>Hello,
>
>My boss got the idea to develop an application (potentially for sale) which
>would allow people with no technical knowledge create a web-shop. It would
>be running on server and accessed though a regular browser. I feel Perl is a
>good tool for this kind of task. He doesn't like the idea of writing it in
>Perl because we would have to give out the source code. My question is: what
>is the best solution to make the whole system somehow protected? (I know
>it's the age of open source and the concept of hiding source code is strange
>to Perl, but still ;) I thought combining a core in C and the rest in Perl
>would solve the question, but I would like to hear other opinions.
>
You can use Perl2exe to convert your code to binary form for
multiple OS', however, you'll never be able to run it persistently
after that. Somehow I don't think that will be a problem though.
perl2exe.com
MP
------------------------------
Date: Wed, 09 Aug 2000 10:54:44 +0300
From: Sasa Danicic <Sasa.Danicic@eurodyn.com>
Subject: Extracting string between XML tag pair from file
Message-Id: <39910E44.28BDAFF1@eurodyn.com>
Hello,
I've got a huge file so I've need to extract a string which matches
between first occurance of XML pair of tags.
So, for example I've need to extract all between first apperiance of
<EMPLOYEE> and first apperiance of </EMPLOYEE> in a file, including
<EMPLOYEE> and </EMPLOYEE> as part of string.
Inside file could be much more <EMPLOYEE>...</EMPLOYEE> tags, but I've
need between the first ones.
Regargs,
Sasa
------------------------------
Date: Wed, 09 Aug 2000 08:30:01 GMT
From: marcel@codewerk.com (Marcel Grunauer)
Subject: Re: Extracting string between XML tag pair from file
Message-Id: <slrn8p25iv.1h5.marcel@gandalf.local>
On Wed, 09 Aug 2000 10:54:44 +0300, Sasa Danicic
<Sasa.Danicic@eurodyn.com> wrote:
>I've got a huge file so I've need to extract a string which matches
>between first occurance of XML pair of tags.
Have a look at XML::Parser (from CPAN).
--
Marcel
sub AUTOLOAD{($_=$AUTOLOAD)=~s;^.*::;;;y;_; ;;print} Just_Another_Perl_Hacker();
------------------------------
Date: 9 Aug 2000 10:26:12 GMT
From: u8526505@ms27.hinet.net ()
Subject: files transferred by socket?
Message-Id: <8mrbk4$7sn@netnews.hinet.net>
I tried to send files from socket by this way
server:
open(FILE,$file) or die "error";
binmode(FILE);
while(<FILE>){
print $sock $_;
}
close FILE;
client:
open(NEWFILE,">newfile");
while(defined ($_=<$sock>)){
print NEWFILE $_;
}
close (NEWFILE);
the data that client receive is always larger than the original one.why?
I tried both text and binary file and the result is the same.
If I comment the binmode then it works for text file but not binary.
Is there a general way for both types of files?
The problem is encountered on windows platform and O.K. for linux.
does this problem result from the platform issue?
Thanks for help.
Derek
------------------------------
Date: 9 Aug 2000 07:30:09 GMT
From: mahesha@nital.stpp.soft.net
Subject: Generated or received a file descriptor number that is not valid
Message-Id: <8mr1a1$jk4$1@news.netmar.com>
i,
I have a couple of small perl scripts...
One is exec.pl ...
#!/usr/local/bin/perl -w
my $CmdStr1 = "my.pl > lst1";
my $CmdStr2 = "my.pl >& lst2";
system ("$CmdStr1");
system ("$CmdStr2");
.. and other my.pl ...
#!/usr/local/bin/perl -w
print "An STDOUT String1\n";
print STDERR "An STDERR String2\n";
print "An STDOUT String3\n";
print STDERR "An STDERR String4\n";
Upon executing exec.pl, these are the responses that I get on two
versions of perl (on two different OSs).
On perl version 5.005_03 built for i386-linux, (Exactly the way I want)
An STDERR String2
An STDERR String4
(Lst1 has only the STDOUT messages & Lst2 has both STDERR & STDOUT
messages)
And on perl v5.6.0 built for 9000/777-hpux, (Error. Functionality, not
as desired)
An STDERR String2
An STDERR String4
sh: lst2: Generated or received a file descriptor number that is not
valid.
(Lst1 has only the STDOUT messages. Script exits before generating Lst2
due to an error)
------------------------------------------------------------------------
I think the problem lies in the '&' in $CmdStr2. If that is removed,
all's well - except the functionality - because I want all the STDERR
& STDOUT messages to go into the lst files. Is there any way I can get
response on v5.6.0 similar to the 5.005_03?
I have an idea that perl 5.6.0 treats file descriptors differently as
compared to its predecessors - as real variables. But I am not sure if
this problem is related to that fact.
- Mahesh
----- Posted via NewsOne.Net: Free Usenet News via the Web -----
----- http://newsone.net/ -- Discussions on every subject. -----
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse@newsone.net
------------------------------
Date: Wed, 09 Aug 2000 08:39:08 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: GREP - type of script...
Message-Id: <slrn8p26f9.k9e.rgarciasuarez@rafael.kazibao.net>
Scott Barlow wrote in comp.lang.perl.misc:
>Hello,
>
>I'm looking to write a perl script that will take a flat
>file that contains variable X and Y, and change either X or
>Y (user choice) with a new user-input variable.
>
>Kind of like a search and replace - but I'd like to do it
>specifically with perl.
>
>Has anyone already done this, and know where I might be
>able to get it instead of writing one from scratch?
This one-liner does it:
perl -pi -e s/X/Y/g file1 file2 ... fileN
The rest is literature...
--
Rafael Garcia-Suarez
------------------------------
Date: Wed, 09 Aug 2000 12:20:31 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: GREP - type of script...
Message-Id: <70j2ps8epoq8dgjfgojgtc1hl9u12bd2h4@4ax.com>
Scott Barlow wrote:
>I'm looking to write a perl script that will take a flat
>file that contains variable X and Y, and change either X or
>Y (user choice) with a new user-input variable.
>
>Kind of like a search and replace - but I'd like to do it
>specifically with perl.
Not much to write. Using the -i.bak command line option, you can modify
any line you like in the script. With the -p option, you don't even need
the "while(<>){ ... }" and the "print".
Script:
s/foo/bar/;
Gee that's big. Command line:
perl -pi.bak myscript.pl myfile.txt
--
Bart.
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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.
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 3960
**************************************