[9453] in Perl-Users-Digest
Perl-Users Digest, Issue: 3046 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 3 16:07:24 1998
Date: Fri, 3 Jul 98 13:01:52 -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 Fri, 3 Jul 1998 Volume: 8 Number: 3046
Today's topics:
Client / Server mayhem <ContaX@Mindless.com>
Re: Client / Server mayhem <zenin@bawdycaste.org>
Re: Cookies with Perl and IIS 4.0 <heribert.wettels@sueddeutsche.de>
DB_File.pm <dcash@netrox.net>
Re: DB_File.pm <jeremy@exit109.com>
Re: DB_File.pm (Craig Berry)
DBM Files <hvanlint@lodestar.be>
DBM Files <hvanlint@lodestar.be>
Re: DBM Files <rpsavage@ozemail.com.au>
Re: Dereferencing Anonymous Hash (brian d foy)
Re: detecting time of day <heribert.wettels@sueddeutsche.de>
Difference between ', `, and " ? <bth@acsu.buffalo.edu>
Re: Difference between ', `, and " ? (Matt Knecht)
Re: Difference between ', `, and " ? ("John Dallman")
Drop down menu <ra7953@email.sps.mot.com>
Re: Drop down menu (Bob Trieger)
Re: Drop down menu <qdtcall@esb.ericsson.se>
Re: Drop down menu (Josh Kortbein)
Re: Dynamic Programming (Mark-Jason Dominus)
Editeurs pour Perl? <dominique.cretel@cfwb.be>
Re: Editeurs pour Perl? <qdtcall@esb.ericsson.se>
Re: Editeurs pour Perl? <jason.holland@dial.pipex.com>
Re: Editeurs pour Perl? <bowlin@sirius.com>
Re: Editeurs pour Perl? <pwhite@nospam_surfsouth.com>
Re: Editors for Perl? (was: Editeurs pour Perl?) <quednauf@nortel.co.uk>
Editors for Perl? <dominique.cretel@cfwb.be>
Re: Editors for Perl? (Michael Rubenstein)
Re: Editors for Perl? (Michael Rubenstein)
Extension with Visual C++ 5.0 <geert@hypervision.be>
File Opening Help <hostmaster@hosttech.com>
Re: File Opening Help (brian d foy)
File Opening <hostmaster@hosttech.com>
Re: File Opening (brian d foy)
File::Copy warning <eyalb@bvr.co.il>
Re: File::Copy warning <lth@dannet.dk>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 03 Jul 1998 14:07:20 +0100
From: Dan Burzynski <ContaX@Mindless.com>
Subject: Client / Server mayhem
Message-Id: <359CD788.B09154AC@Mindless.com>
--------------D17AFC306E95372BC9D0494C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Could some one please tell me how I should go about creating a good
socket based client written in PERL. I've already got a forking server
up and running and a client that talks to it, but I can't get the client
to keep the connection open to listen to what the server has to say in
reply. If it's anyhelp, my client looks a little bit like this at the
moment
#!/usr/local/bin/perl
use IO::Socket;
$sent = "message to server";
$sock = new IO::Socket::INET ( PeerAddr => a.server.address.com,
PeerPort => 3333,
Proto => 'tcp',
);
die "socket could not be created. Reason $!\n" unless $sock;
# Sending the message to the server
print $sock $sent . "\n";
# This next bit is what I'm using (without success) to catch what the
server's
# gonna send back.
while ($new_sock = $sock->accept()) {
while (defined($buf = <$new_sock>)) {
chop($buf);
print "Got back [$buf]" . "\n";
}
}
close($sock);
Am I on the right track? What's the deal?!?!?!
Dan....(iel)
--------------D17AFC306E95372BC9D0494C
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Could some one please tell me how I should go about creating a good socket
based client written in PERL. I've already got a forking server up and
running and a client that talks to it, but I can't get the client
to keep the connection open to listen to what the server has to say in
reply. If it's anyhelp, my client looks a little bit like this at the moment
<P><TT>#!/usr/local/bin/perl</TT><TT></TT>
<P><TT>use IO::Socket;</TT><TT></TT>
<P><TT>$sent = "message to server";</TT>
<BR><TT>$sock = new IO::Socket::INET ( PeerAddr => a.server.address.com,</TT>
<BR><TT>
PeerPort => 3333,</TT>
<BR><TT>
Proto => 'tcp',</TT>
<BR><TT>
);</TT>
<BR><TT>die "socket could not be created. Reason $!\n" unless $sock;</TT><TT></TT>
<P><TT># Sending the message to the server</TT>
<BR><TT>print $sock $sent . "\n";</TT><TT></TT>
<P><TT># This next bit is what I'm using (without success) to catch what
the server's</TT>
<BR><TT># gonna send back.</TT>
<BR><TT>while ($new_sock = $sock->accept()) {</TT>
<BR><TT> while (defined($buf
= <$new_sock>)) {</TT>
<BR><TT>
chop($buf);</TT><TT></TT>
<P><TT>
print "Got back [$buf]" . "\n";</TT>
<BR><TT> }</TT>
<BR><TT>}</TT>
<BR><TT>close($sock);</TT><TT></TT>
<P>Am I on the right track? What's the deal?!?!?!
<P>Dan....(iel)</HTML>
--------------D17AFC306E95372BC9D0494C--
------------------------------
Date: 3 Jul 1998 16:09:27 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Client / Server mayhem
Message-Id: <899482718.618258@thrush.omix.com>
[posted & mailed]
Dan Burzynski <ContaX@Mindless.com> wrote:
: Content-Type: text/html; charset=us-ascii
Please do not post HTML formated messages to Usenet, and don't
use MIME attachments of redundant data (eg, same message in
both "text" and "html" when just text is correct).
Thanks.
: $sock = new IO::Socket::INET ( PeerAddr => a.server.address.com,
: PeerPort => 3333,
: Proto => 'tcp',
: );
: die "socket could not be created. Reason $!\n" unless $sock;
IO::Socket is brain dead in its error handling. What
you need here is $@, not $!. Yes, I know that makes no
sense but that's where IO::Socket keeps its error
messages... It's also not documented...blagh...
: # Sending the message to the server
: print $sock $sent . "\n";
One problem is right here. Or rather, right before here. You
need to set your socket to autoflush before you try to do any
real time conversations with it:
$sock->autoflush (1);
: # This next bit is what I'm using (without success) to catch what the
: # server's gonna send back.
: while ($new_sock = $sock->accept()) {
: while (defined($buf = <$new_sock>)) {
: chop($buf);
: print "Got back [$buf]" . "\n";
: }
: }
: close($sock);
You're a client, who are you expecting to accept()? The server
accept()s the client's connect(). You did the connection
when you created the IO::Socket object. Try this:
while (defined ($buf = <$sock>) {
chomp $buf; ## see perlfunc for chop vs chomp
print "Got back [$buf]\n";
}
Remember, you can always test the server's accept() by using
telent:
telnet a.server.address.com 3333
--
-Zenin
zenin@archive.rhps.org
------------------------------
Date: Fri, 03 Jul 1998 12:53:19 +0200
From: Heribert Wettels <heribert.wettels@sueddeutsche.de>
Subject: Re: Cookies with Perl and IIS 4.0
Message-Id: <359CB81F.B8F55292@sueddeutsche.de>
bigbeta69@my-dejanews.com wrote:
> I'm probably missing a very basic step here... I'm trying to set a cookie in
> perl, but when I type
> the following code:
>
> # Print out the HTML Content-Type header.
> print "Content-type: text/html\n";
should read:print "Content-type: text/html\n\n";
with TWO new lines.
Don't know if this is the only problem with your script but it's definitely one.
Heribert
> # Set a new cookie.
> &SetCookies('user','1'); #This is from a library from Matt's Script Archive
> # End the headers sent to browser.
> print "\n";
>
> The lines that are printed are actually printed onto the HTML page! (i.e., the
> cookie is never
> set, all that happens is this line is displayed in my browser:
> Content-type: text/html Set-Cookie: user=1; expires=Fri, 26-06-2999 00:00:00
> GMT;
>
> I know i'm missing somehting very simple.. Any help is appreciated..
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
--
Heribert Wettels
Sueddeutsche Zeitung - SZonNet
Sendlinger Str. 8, 80331 Muenchen
Tel. (0 89) 21 83-82 24, Fax -93 80
------------------------------
Date: Thu, 2 Jul 1998 17:49:08 -0500
From: "DCash" <dcash@netrox.net>
Subject: DB_File.pm
Message-Id: <6nh2r0$ctb$1@supernews.com>
Can some tell me where I can locate DB_File.pm I was told that it came
bundled with Perl but my sys admin doesn't have it.
Thanks
DCash
------------------------------
Date: 2 Jul 1998 22:11:45 GMT
From: Jeremy <jeremy@exit109.com>
Subject: Re: DB_File.pm
Message-Id: <6nh0j1$hg4$1@news1.exit109.com>
DCash <dcash@netrox.net> wrote:
> Can some tell me where I can locate DB_File.pm I was told that it came
> bundled with Perl but my sys admin doesn't have it.
DB_File only gets installed with Perl if the system has Berkeley DB on
it. No Berkeley DB, no DB_File. And, installing DB_File.pm on a
system without Berkeley DB won't work.
--
Jeremy | jeremy@exit109.com
"I told the priest, don't count on any second coming.
God got his ass kicked the first time he came down here slumming."
--Johnette Napolitano
------------------------------
Date: 2 Jul 1998 22:11:11 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: DB_File.pm
Message-Id: <6nh0hv$kt5$5@marina.cinenet.net>
DCash (dcash@netrox.net) wrote:
: Can some tell me where I can locate DB_File.pm I was told that it came
: bundled with Perl but my sys admin doesn't have it.
It's not bundled with Perl. <hint>Where else might one look for Perl
modules?</hint> <bigger hint>I just found the answer (to my preceding
question) two different ways by scanning the Perl online doc for the word
'modules'.</bigger hint>
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Thu, 2 Jul 1998 10:40:14 +0200
From: "Hans Van Lint" <hvanlint@lodestar.be>
Subject: DBM Files
Message-Id: <6nfgv6$3nd$1@news2.xs4all.nl>
Hi,
where can I find lots of info about DBM Files?
How to use them, make them, ......
Thanks
------------------------------
Date: Thu, 2 Jul 1998 23:57:13 +0200
From: "Hans Van Lint" <hvanlint@lodestar.be>
Subject: DBM Files
Message-Id: <6ngvlj$l0o$1@news2.xs4all.nl>
Hi,
where can I find lots of info about DBM Files?
How to use them, make them, ......
I always seem to find examples with only 2 values (hash with two values).
Like the password file in Unix. I'll need to put the following data in a DBM
file to get faster access: cause the file is about 2.5MB big:
example of file:
215215-545;15/06/1998;Name;Address;Zip;Tel;Fax;GSM;email;remark;
453242-543;18/07/1998;Name;...
and so on.
Can I use a DBM file for this??!!
Thanks
------------------------------
Date: 2 Jul 1998 23:43:54 GMT
From: "Ron Savage" <rpsavage@ozemail.com.au>
Subject: Re: DBM Files
Message-Id: <01bda613$e7a54780$43ea1286@steelres-pcm657.resmel.bhp.com.au>
http://www.hermetica.com
or so I am told.
[snip]
> where can I find lots of info about DBM Files?
[snip]
------------------------------
Date: Thu, 02 Jul 1998 02:16:51 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Dereferencing Anonymous Hash
Message-Id: <comdog-ya02408000R0207980216510001@news.panix.com>
Keywords: from just another new york perl hacker
In article <359A201B.D02A858D@interactive.ibm.com>, johnc@interactive.ibm.com posted:
>>@uniq = sort keys %{ { map {$_,1} @list } };
>
>Ok. I got an answer to this which is the obvious - keys takes a hash as
>an
>arguement not a reference to a hash. Thanks for the answer (which I knew
>but got crossed up).
>
>What I meant to ask is why the second set of {} makes a reference to an
>anonymous hash and isn't a hash itself? I don't see where this is making
>a reference to a hash. Am I again missing the obvious?
i'm not sure which set you think is the "second set". however,
something like
$hash_ref = { LIST };
uses the { } to create the hash reference, just as
$array_ref = [ LIST ];
uses the [ ] to creat the array reference. in this case, the LIST
comes from
map {$_,1} @list
so you have
$hash_ref = { map {$_,1} @list };
to access the hash from $hash_ref, one would normally do something
like
@uniq = sort keys %$hash_ref;
or
@uniq = sort keys %{$hash_ref};
however, the assignment to the $hash_ref is skipped, so you end
up with the snippet you show:
@uniq = sort keys %{ { map {$_,1} @list } };
good luck :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers T-shirts! <URL:http://www.pm.org/tshirts.html>
------------------------------
Date: Fri, 03 Jul 1998 12:59:07 +0200
From: Heribert Wettels <heribert.wettels@sueddeutsche.de>
Subject: Re: detecting time of day
Message-Id: <359CB97B.701B269C@sueddeutsche.de>
use this one to get all components of the date into a separate variable:
($sec,$min,$hrs,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
be aware that $mon get the values from 0 ... 11 (i.e. July = 6)
Heribert
Brian Day wrote:
> I have another newbie question. Is there some way of detecting the time with Perl.
> I thought I remember hearing something about that.
>
> Thanks,
> Brian
--
Heribert Wettels
Sueddeutsche Zeitung - SZonNet
Sendlinger Str. 8, 80331 Muenchen
Tel. (0 89) 21 83-82 24, Fax -93 80
------------------------------
Date: Thu, 2 Jul 1998 15:12:09 -0400
From: Bryan T Hoch <bth@acsu.buffalo.edu>
Subject: Difference between ', `, and " ?
Message-Id: <Pine.GSO.3.96.980702151014.10213B-100000@callisto.acsu.buffalo.edu>
Hi, I've found that ' , ` , and " have different effects when I use them
with variables and strings in the Perl programs I use and write. I never
came to an understanding what is different about them and I haven't found
anywhere that actually discusses it.
Can anyone explain the differences?
Thanks in advance.
Bryan H
------------------------------
Date: Thu, 02 Jul 1998 19:52:42 GMT
From: hex@voicenet.com (Matt Knecht)
Subject: Re: Difference between ', `, and " ?
Message-Id: <eyRm1.90$Du.948694@news2.voicenet.com>
Bryan T Hoch <bth@acsu.buffalo.edu> wrote:
>Hi, I've found that ' , ` , and " have different effects when I use them
>with variables and strings in the Perl programs I use and write. I never
>came to an understanding what is different about them and I haven't found
>anywhere that actually discusses it.
>Can anyone explain the differences?
Check out 'perldoc perlop', specifically the section entitled 'Quote and
Quote-like Operators'.
The main difference between ' and " is that double quotes interpolates,
and the single quote does not.
--
Matt Knecht - <hex@voicenet.com>
"496620796F752063616E207265616420746869732C20796F7520686176652066
617220746F6F206D7563682074696D65206F6E20796F75722068616E6473210F"
------------------------------
Date: Thu, 2 Jul 1998 20:29:11 GMT
From: jgd@cix.compulink.co.uk ("John Dallman")
Subject: Re: Difference between ', `, and " ?
Message-Id: <EvHI8n.LIJ@cix.compulink.co.uk>
In article
<Pine.GSO.3.96.980702151014.10213B-100000@callisto.acsu.buffalo.edu>,
bth@acsu.buffalo.edu (Bryan T Hoch) wrote:
> Hi, I've found that ' , ` , and " have different effects when I use them
> with variables and strings in the Perl programs I use and write. I never
> came to an understanding what is different about them and I haven't
> found anywhere that actually discusses it.
It's in the Camel book...
Briefly, a single-quoted string is a simple literal string
$string = 'I am a string';
A double-quoted string will have variable names replaced by variable
values:
$statement = "the value of the string is $string<";
print $statement;
produces:
the value of the string is I am a string
Backquotes (``) act like double quotes first, but then the resulting
string is run as an operating system command (just as if you'd typed it
into a shell window) and the value of the `` statement is the output from
that command.
$path = '/users/bth';
$listing = `ls -l $path`;
print $listing;
produces you a listing of your home directory (assuming you're on UNIX).
---
John Dallman jgd@cix.co.uk
------------------------------
Date: Thu, 02 Jul 1998 15:28:47 -0500
From: Vikram Shenoy <ra7953@email.sps.mot.com>
Subject: Drop down menu
Message-Id: <359BED7E.65507CC5@email.sps.mot.com>
How can I create a drop down menu where I can select multiple options?
...say if I want to run a series of tests from a menu of tests....
------------------------------
Date: Fri, 03 Jul 1998 00:18:11 GMT
From: sowmaster@juicepigs.com (Bob Trieger)
Subject: Re: Drop down menu
Message-Id: <6nh840$3a3$1@ligarius.ultra.net>
[ posted and mailed ]
Vikram Shenoy <ra7953@email.sps.mot.com> wrote:
-> How can I create a drop down menu where I can select multiple options?
-> ....say if I want to run a series of tests from a menu of tests....
You can use CGI.pm for that.
Bob Trieger
sowmaster@juicepigs.com
" Cost a spammer some cash: Call 1-800-286-0591
and let the jerk that answers know that his
toll free number was sent as spam. "
------------------------------
Date: 03 Jul 1998 09:10:47 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Drop down menu
Message-Id: <issokjcsug.fsf@godzilla.kiere.ericsson.se>
Vikram Shenoy <ra7953@email.sps.mot.com> writes:
> How can I create a drop down menu where I can select multiple options?
> ...say if I want to run a series of tests from a menu of tests....
By using the excellent Tk module, found on CPAN.
--
Calle Dybedahl, UNIX Sysadmin
qdtcall@esavionics.se http://www.lysator.liu.se/~calle/
------------------------------
Date: 3 Jul 1998 18:07:59 GMT
From: kortbein@iastate.edu (Josh Kortbein)
Subject: Re: Drop down menu
Message-Id: <6nj6lv$j49$1@news.iastate.edu>
Vikram Shenoy (ra7953@email.sps.mot.com) wrote:
: How can I create a drop down menu where I can select multiple options?
: ...say if I want to run a series of tests from a menu of tests....
You create a form in your HTML document containing a select menu.
Then you do something to get it to work, like writing a CGI or using
Javascript.
[This was not a perl-specific question, and you would be better-served
by asking it again in a WWW-oriented newsgroup.]
Josh
--
________________________________________________________________________
Interviewer: "So Frank, you have long hair. Does that make you a woman?"
Frank Zappa: "You have a wooden leg. Does that make you a table?"
------------------------------
Date: 2 Jul 1998 17:56:56 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Dynamic Programming
Message-Id: <6ngvn8$c31$1@monet.op.net>
Keywords: jock razor slept waterway
In article <6neif0$q4m$1@piglet.cc.uic.edu>,
Brian Fleming <bfleming@eecs.uic.edu> wrote:
>In the real world of programming, how vital is an understanding of dynamic
>programming?
The goal it accomplishes, efficient implementation of highly recursive
algorithms, is important and useful. But in my opinion the techniques
you're learning are probably useless, because the aims of dynamic
programming techniques can almost always be accomplished more easily
with automatic memoization instead.
I'm planning to talk about this at the Perl conference in August. I
have a nice example showing how to solve the partition problem, which
is an often-used example of dynamic programming techniques. (See
Garey and Johnson, pp 90-91.)
You'd like to just program it in the most straightforward way, but if
you did, it would be extremely inefficient. So instead, you just
program it in the most straightforward way, and then you memoize it,
which adds about two lines of code to the program. The results are
exactly what you would have gotten if you had used the dynamic
programming techniques, except that you got them for free.
------------------------------
Date: Thu, 02 Jul 1998 12:16:03 +0200
From: CRETEL Dominique <dominique.cretel@cfwb.be>
Subject: Editeurs pour Perl?
Message-Id: <359B5DE3.36B2@cfwb.be>
Bonjour tout le monde,
Je sais, cela doit etre la n-ieme fois que quelqu'un parle de cela!
Mais, etant un nouvel utilisateur de Perl, j'aimerais savoir si il exite
un bon editeur pour Perl, si possible freeware, ou il y aurait une aide
en ligne sur les mots clis de Perl (ex: Shift F1 sur le mot cle GREP).
Merci de votre aide,
Dominique Cretel
------------------------------
Date: 02 Jul 1998 13:12:44 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Editeurs pour Perl?
Message-Id: <isg1gkecb7.fsf@godzilla.kiere.ericsson.se>
CRETEL Dominique <dominique.cretel@cfwb.be> writes:
> Je sais, cela doit etre la n-ieme fois que quelqu'un parle de cela!
Jag tror du har hamnat i fel nyhetsgrupp. Du vill bergis ha negon som
bvrjar med fr.* eller se.
--
Calle Dybedahl, UNIX Sysadmin
qdtcall@esavionics.se http://www.lysator.liu.se/~calle/
------------------------------
Date: Thu, 02 Jul 1998 21:11:42 +0000
From: Jason Holland <jason.holland@dial.pipex.com>
To: dominique.cretel@cfwb.be
Subject: Re: Editeurs pour Perl?
Message-Id: <359BF78E.9293765F@dial.pipex.com>
CRETEL Dominique wrote:
>
> Bonjour tout le monde,
>
> Je sais, cela doit etre la n-ieme fois que quelqu'un parle de cela!
>
> Mais, etant un nouvel utilisateur de Perl, j'aimerais savoir si il exite
> un bon editeur pour Perl, si possible freeware, ou il y aurait une aide
> en ligne sur les mots clis de Perl (ex: Shift F1 sur le mot cle GREP).
>
> Merci de votre aide,
> Dominique Cretel
Hello Dominique,
Sorry, my French is not too good. But as I work for a localisation
company I can just about figure out that what you need is EMACS. I've
been using xemacs for a while now, which tastes especially good!
If you're using a UNIX system then get that.
On Macintosh, get BBEdit.
On Windows, get UNIX and then get EMACS!
Bye!
--
sub jasonHolland {
my %hash = ( website =>
"http://dspace.dial.pipex.com/jason.holland/",
email => "jason.holland@dial.pipex.com" );
}
------------------------------
Date: Thu, 02 Jul 1998 14:30:06 -0700
From: Jim Bowlin <bowlin@sirius.com>
To: dominique.cretel@cfwb.be
Subject: Re: Editeurs pour Perl?
Message-Id: <359BFBDE.9DE33678@sirius.com>
CRETEL Dominique wrote:
>
> Bonjour tout le monde,
>
> Je sais, cela doit etre la n-ieme fois que quelqu'un parle de cela!
>
> Mais, etant un nouvel utilisateur de Perl, j'aimerais savoir si il exite
> un bon editeur pour Perl, si possible freeware, ou il y aurait une aide
> en ligne sur les mots clis de Perl (ex: Shift F1 sur le mot cle GREP).
>
> Merci de votre aide,
> Dominique Cretel
I have a couple of suggestions if you are on a Windows system.
1) Emacs is available for Windows. That's what I use. It is free.
2) Someone else from this group suggested EditPlus. I tried
it and I liked it. It is shareware ($20).
Bon chance, -- Jim Bowlin
------------------------------
Date: Thu, 2 Jul 1998 18:44:53 -0400
From: "Penn White" <pwhite@nospam_surfsouth.com>
Subject: Re: Editeurs pour Perl?
Message-Id: <359c0dfd.0@news2.surfsouth.com>
>Mais, etant un nouvel utilisateur de Perl, j'aimerais savoir si il exite
>un bon editeur pour Perl, si possible freeware, ou il y aurait une aide
>en ligne sur les mots clis de Perl (ex: Shift F1 sur le mot cle GREP).
I have just found an editor for Win95/NT systems called UltraEdit32
(http://www.ultraedit.com) that I really like. It allows programmable
syntax highlighting for several languages including perl but any can be
added, multi-file find and replace and LOTS of other features. It is an
evolution of the old MultiEdit editor for DOS which was a dynamite editor.
Shareware $30 us.
-----
Bonjour,
Je viens de rencontre un editeur de perl qui s'appel UltraEdit32
(http://www.ultraedit.com) et j'en suis tres content. Il est rempli de
qualites (oublie le mot pour 'features', priez de m'excuse) tres chouette et
tres facil a utiliser.
J'espere que cela vous aidera.
Penn White
(no financial interest in company and my name's not Veronica, not even
Veronique!)
------------------------------
Date: Thu, 02 Jul 1998 12:05:02 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: Editors for Perl? (was: Editeurs pour Perl?)
Message-Id: <359B695E.C0EBBA80@nortel.co.uk>
CRETEL Dominique wrote:
>
> Mais, etant un nouvel utilisateur de Perl, j'aimerais savoir si il exite
> un bon editeur pour Perl, si possible freeware, ou il y aurait une aide
> en ligne sur les mots clis de Perl (ex: Shift F1 sur le mot cle GREP).
This is the g'old editor for Perl question
Quelle systeme est-ce que vous utilisez? Win32 ou UNIX?
if (win32) {
Cherchez pour 'perl editor win32' au deja-news
}
else {
je ne sais pas :)
}
Excuse my probably complete pisstake French, get sooo many chances to learn in
this newsgroups :)
--
____________________________________________________________
Frank Quednau
http://www.surrey.ac.uk/~me51fq
________________________________________________
------------------------------
Date: Thu, 02 Jul 1998 13:30:00 +0200
From: CRETEL Dominique <dominique.cretel@cfwb.be>
Subject: Editors for Perl?
Message-Id: <359B6F38.E54@cfwb.be>
Hi all,
Excuse me for my lastfrench message, I wanted to send it to the french
Perl newsgroup, not to the english one.
Here is my request:
I know that it's not the first time that someone talk about this!
But, beeing a new user of the excellent Perl, I want to know if it exist
a good editor where you can get help on a Perl syntax by pressing a set
of key (i.e. Shift F1) on a key word in the text script?
Thanks,
Dominique Cretel
------------------------------
Date: Thu, 02 Jul 1998 16:40:24 GMT
From: miker3@ix.netcom.com (Michael Rubenstein)
Subject: Re: Editors for Perl?
Message-Id: <359eb2d5.220648165@nntp.ix.netcom.com>
On Thu, 02 Jul 1998 13:30:00 +0200, CRETEL Dominique
<dominique.cretel@cfwb.be> wrote:
>Hi all,
>
>Excuse me for my lastfrench message, I wanted to send it to the french
>Perl newsgroup, not to the english one.
>
>Here is my request:
>I know that it's not the first time that someone talk about this!
>But, beeing a new user of the excellent Perl, I want to know if it exist
>a good editor where you can get help on a Perl syntax by pressing a set
>of key (i.e. Shift F1) on a key word in the text script?
Codewright can be configured to do this. Whether it's a good editor
is a matter of taste, so I'll just say that its competent in that it
has everything I need, but I much prefer emacs or vim.
The help file for Perl appears to have been created from an older
version of the HIP (now Activestate) documentation for Win32 Perl.
Not everything was converted. You won't miss most of the stuff that's
not there in day to day programming, but there are some (to me)
obvious exceptions such as perlsub, perlbot, perltoot and, especially
for beginners, perltrap.
Generally I prefer to use emacs or vim and just keep a browser open
with the HTML version of the Perl documentation, but tastes vary and
you might prefer Codewright. It's fairly expensive, but I believe
there is a limited demo available at http://www.premia.com.
--
Michael M Rubenstein
------------------------------
Date: Thu, 02 Jul 1998 16:58:17 GMT
From: miker3@ix.netcom.com (Michael Rubenstein)
Subject: Re: Editors for Perl?
Message-Id: <359fbbc1.222931899@nntp.ix.netcom.com>
On Thu, 02 Jul 1998 16:40:24 GMT, miker3@ix.netcom.com (Michael
Rubenstein) wrote:
>Codewright can ...
I failed to mention that Codewright is available only for Windows. If
you're not using Windows, never mind.
--
Michael M Rubenstein
------------------------------
Date: 2 Jul 1998 12:39:43 GMT
From: "Geert Broeders" <geert@hypervision.be>
Subject: Extension with Visual C++ 5.0
Message-Id: <01bda5b6$6cf701c0$ed0a00c3@butthead.hypervision.be>
Hi,
Does anyone have a step by step description of how to write a perl
extension module in C using Visual C++ 5.0. My perl is the 'Gurusamy
Sarathy' binary distribution version 5.004_02.
Bye,
Geert Broeders
------------------------------
Date: Fri, 3 Jul 1998 14:28:39 -0400
From: "Michael Harrison" <hostmaster@hosttech.com>
Subject: File Opening Help
Message-Id: <6nj7qf$i4i$1@decius.ultra.net>
I need away for a perl script when executed to watch a directory until a
file appers, and just pause until the file is there. Is there a simple way
to do this.
------------------------------
Date: Fri, 03 Jul 1998 15:04:02 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: File Opening Help
Message-Id: <comdog-ya02408000R0307981504020001@news.panix.com>
Keywords: from just another new york perl hacker
In article <6nj7qf$i4i$1@decius.ultra.net>, "Michael Harrison" <hostmaster@hosttech.com> posted:
>I need away for a perl script when executed to watch a directory until a
>file appers, and just pause until the file is there. Is there a simple way
>to do this.
yes.
see my answer to your same question in the post with a slightly
different subject line. you only need to post the same message
once.
good luck :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers Travel Deals! <URL:http://www.pm.org/travel.html>
------------------------------
Date: Fri, 3 Jul 1998 14:30:19 -0400
From: "Michael Harrison" <hostmaster@hosttech.com>
Subject: File Opening
Message-Id: <6nj7ti$ib2$1@decius.ultra.net>
I need away for a perl script when executed to watch a directory until a
file appers, and just pause until the file is there. Is there a simple way
to do this.
send answers to mike@hosttech.com
------------------------------
Date: Fri, 03 Jul 1998 15:02:36 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: File Opening
Message-Id: <comdog-ya02408000R0307981502360001@news.panix.com>
Keywords: from just another new york perl hacker
[what has this to do with file opening?]
In article <6nj7ti$ib2$1@decius.ultra.net>, "Michael Harrison" <hostmaster@hosttech.com> posted:
>I need away for a perl script when executed to watch a directory until a
>file appers, and just pause until the file is there. Is there a simple way
>to do this.
while( ! -e $file ) { sleep(10) };
>send answers to mike@hosttech.com
read answers in comp.lang.perl.misc
good luck :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers Travel Deals! <URL:http://www.pm.org/travel.html>
------------------------------
Date: Fri, 03 Jul 1998 09:03:02 +0200
From: Eyal <eyalb@bvr.co.il>
Subject: File::Copy warning
Message-Id: <359C8226.41C6@bvr.co.il>
Hi,
when I do
#!/usr/bin/perl -w
use diagnostics;
use File::Copy;
copy("Foo","/tmp/Foo");
i get this warning
Use of uninitialized value at /usr/freeware/lib/perl5/File/Copy.pm line
80 (#1)
(W) An undefined value was used as if it were already defined. It
was
interpreted as a "" or a 0, but maybe it was a mistake. To suppress
this
warning assign an initial value to your variables.
whats wrong? and how do Is fix it ?
--
\\\|///
\\ ~ ~ //
( @ @ )
================oOOo=(_)=oOOo================
Eyal Bar Ilan BVR Technologies (Israel)
eyalb@bvr.co.il
=========================Oooo================
oooO ( )
( ) ) /
\ ( (_/
\_)
------------------------------
Date: Fri, 03 Jul 1998 15:12:57 +0100
From: Lars Thegler <lth@dannet.dk>
To: Eyal <eyalb@bvr.co.il>
Subject: Re: File::Copy warning
Message-Id: <359CE6E9.49FFCC46@dannet.dk>
What version of Perl are you using? My 5.004_04 doesn't do this.
Eyal wrote:
>
> Hi,
>
> when I do
>
> #!/usr/bin/perl -w
> use diagnostics;
> use File::Copy;
>
> copy("Foo","/tmp/Foo");
>
> i get this warning
>
> Use of uninitialized value at /usr/freeware/lib/perl5/File/Copy.pm line
> 80 (#1)
--
Lars Thegler mailto:lth@dannet.dk
Internet Development http://www.dannet.dk
Dan Net A/S phone: +45 45 82 16 00
Blokken 9 - DK-3460 Birkeroed - Denmark fax: +45 45 82 16 44
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 3046
**************************************