[13189] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 599 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 20 09:09:30 1999

Date: Fri, 20 Aug 1999 06:05:12 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 20 Aug 1999     Volume: 9 Number: 599

Today's topics:
    Re: $8.99 NT/UNIX HOST, 100 megs, UNLIM HITS! CHEAP! Ju <nospam.newton@gmx.net>
        ? perl4 != perl5 ? <kilimount@earthling.net>
    Re: Behold-Software? <gellyfish@gellyfish.com>
    Re: Can I use regx with eof()? <vmurphy@gamora.ndhm.gtegsc.com>
    Re: CGI FILE UPLOAD <gellyfish@gellyfish.com>
    Re: Determining Session Uniqueness <flavell@mail.cern.ch>
    Re: Determining Session Uniqueness boschini@my-deja.com
    Re: execute a perl-script out of js <c4jgurney@my-deja.com>
    Re: execute a perl-script out of js <koenig@privat.toplink.de>
    Re: execute a perl-script out of js <c4jgurney@my-deja.com>
        Find a substring of mixed type but NOT WhiteSpace? <pdobbs@home.com>
    Re: Find a substring of mixed type but NOT WhiteSpace? (Marcel Grunauer)
    Re: hey everybody. can you help me? <nospam.newton@gmx.net>
        local perl ejehoel@my-deja.com
    Re: local perl boschini@my-deja.com
        merging complex hashes? <sr@pc-plus.de>
        new to perl and a bit stupid ceara_rea@hotmail.com
    Re: OOP in perl - not modules!!! (Bart Lateur)
    Re: OOP in perl - not modules!!! <sr@pc-plus.de>
    Re: Packages and parent packages (Bart Lateur)
    Re: perl + mysql.. <contact@nativetongues.com>
    Re: Perl compiler for DOS/Windows? <gellyfish@gellyfish.com>
    Re: PERL EDITOR (Marcel Grunauer)
    Re: PERL EDITOR <alex@kawo2.rwth-aachen.de>
    Re: PERL EDITOR <gellyfish@gellyfish.com>
    Re: PERL EDITOR (Bart Lateur)
        Perl Threads: Discussion area?; Comment on www.perl.com <rkc@ll.mit.edu>
        Perl without C compiler. <serguei.goumeniouk@midwal.ca>
    Re: perl-DBI problem <contact@nativetongues.com>
    Re: Python for Perl users: random thoughts (Bart Lateur)
    Re: Request for Comments: www.perl.com <jamespo@N0SPAM.yahoo.com>
    Re: Request for Comments: www.perl.com <flavell@mail.cern.ch>
    Re: Split comp.lang.perl.misc <gellyfish@gellyfish.com>
    Re: Split comp.lang.perl.misc <james.williamson@bbc.co.uk>
    Re: what does eq do on lists? (Bart Lateur)
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 20 Aug 1999 12:03:04 +0200
From: "Philip 'Yes, that's my address' Newton" <nospam.newton@gmx.net>
Subject: Re: $8.99 NT/UNIX HOST, 100 megs, UNLIM HITS! CHEAP! Just found it!
Message-Id: <37BD27D8.D50F4235@gmx.net>

designdood@my-deja.com wrote:
> 
> fronpage 2k also, and FULL ASP and database!

Yes, I'm sure these (first two) feature alone will win over most of the
comp.lang.perl.misc regulars to this site.

Cheers,
Philip


------------------------------

Date: Fri, 20 Aug 1999 12:26:14 +0200
From: kilimount <kilimount@earthling.net>
Subject: ? perl4 != perl5 ?
Message-Id: <37BD2D46.BF87EE1F@earthling.net>

For many reasons I have to run old scripts made for perl4 under perl5,
and it's returning me tons of errors (else than \ before @). If anyone
has a fast solution or could tell me the differences between perl4 and
5, that'd of a great help to me.
Thanx in advance,

Kilimount.



------------------------------

Date: 20 Aug 1999 10:33:14 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Behold-Software?
Message-Id: <37bd20da_2@newsread3.dircon.co.uk>

Cut and Paste Scripts <cutandpastescripts@exl.co.uk> wrote:
> Hi,
> 
> **** PLEASE don't morn or have a go, but this question is related to
> perl/cgi but isn't a programming question, but please could any one help
> me!!! *****
> 
> 

I would say that that be for us to decide.  Have you tried to e-mailing
the company in question ?

/J\
-- 
"You've got to remember it was the 1980s. There were a lot of people
alive back then who died in the Second World War" - This Morning with
Richard Not Judy


------------------------------

Date: Fri, 20 Aug 1999 10:48:15 GMT
From: Vincent Murphy <vmurphy@gamora.ndhm.gtegsc.com>
Subject: Re: Can I use regx with eof()?
Message-Id: <xjg4shu6841.fsf@gamora.ndhm.gtegsc.com>

>>>>> "Per" == Per Kistler <kistler@fnmail.com> writes:

    Per> Hi Vinny
    Per> And one cannot just have something simple, like:
    Per> ...
    Per> $mem = $/; undef $/;
    Per> $data = <INPUT>;
    Per> $/ = $mem;
    Per> @elements = split(/\belement\b/s,$data); 

This is a good solution except that there are other things in the file and
element is use fairly frequently, thus the split gives a lot of things I
don't want.  The element ... element regx captures all the necessary things
except the last one since it is in the form of

element element_name element_branch ... eof()

    Per> Is eof() really needed?

I don't know.  I can't think of another way of saying from this element to
the end of file.

Thanks.


-- 
Vinny


------------------------------

Date: 20 Aug 1999 12:01:15 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: CGI FILE UPLOAD
Message-Id: <37bd357b_2@newsread3.dircon.co.uk>

Jimmy Humphrey <jimmy@blackhole-designs.com> wrote:
> Jon Peterson wrote:
> 
>> Jimmy Humphrey <jimmy@blackhole-designs.com> wrote:
>> > Does anybody know of a PM or some script that will allow people to
>> > upload an image to wherever I let them via a HTML Form and the image has
>> > to be a paticular file size (and maybe even deminsion?). Also, a bonus
>> > would be if it would automatically compress the image if it's too big to
>> > get to a paticular file size.
>>
>> No.
>>
>> However, Image::Size will check the dimensions of images.
>> -s will check the size of [image] files.
>> Compress::Zlib will compress things (as will opening a pipe to gzip...), but
>> most commonly used graphics formats are compressed these days already.
> 

> Thanks. Well, the people that will be uploading images to the site are not web
> developers.
> 

Thats right - you are, or at least if you arent you are asking in the
wrong place.

Please check out the module CGI.pm which is standard with all recent 
versions of Perl - the documentation for that module has a section on
using a file upload field.
 
/J\
-- 
"I managed to take her completely by surprise" - Prince Edward


------------------------------

Date: Fri, 20 Aug 1999 12:19:16 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Determining Session Uniqueness
Message-Id: <Pine.HPP.3.95a.990820121813.20918C-100000@hpplus03.cern.ch>

On Fri, 20 Aug 1999, Dan Kubb wrote:

> A few programmers and myself are designing a shopping
> cart system  where we have to determine the
> uniqueness of a given user.  We record all the information
> we can gather from the host computer by looking at
> the %ENV hash, and grab things like IP address, etc.

Of course this has all been discussed before on the appropriate group,
and it won't work.  Did you want to raise some question about the
Perl programming language?




------------------------------

Date: Fri, 20 Aug 1999 11:56:42 GMT
From: boschini@my-deja.com
Subject: Re: Determining Session Uniqueness
Message-Id: <7pjfpm$ju2$1@nnrp1.deja.com>


> What I would like to know, has anyone found any other
> ways to determine uniqueness of a user?
>
I used a "time-stamp", i.e. attaching  the unix-time using
DateTime::Precise.
Obviuosly, this may fail if 2 different users, with same %ENV
(see previous posts) access your site at the same time, millseconds
included....

good luck.

Matteo


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 10:17:29 GMT
From: Jeremy Gurney <c4jgurney@my-deja.com>
Subject: Re: execute a perl-script out of js
Message-Id: <7pj9vi$g3t$1@nnrp1.deja.com>

In article <37BD177A.4549A12C@privat.toplink.de>,
  Hartmut =?iso-8859-1?Q?K=F6nig?= <koenig@privat.toplink.de> wrote:
> Hi there,
>
> just ask: is it possible to fill a js-variable with the return-code of
a
> perl-script in js-script ?
>
> Thanks for any help
>
> Hartmut König

It's possible to write the enitre HTML/Javascript document from a perl
script filling in the variables as it is sent to the browser.

Jeremy Gurney
SAS Programmer  |  Proteus Molecular Design Ltd.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 13:07:14 +0200
From: Hartmut =?iso-8859-1?Q?K=F6nig?= <koenig@privat.toplink.de>
Subject: Re: execute a perl-script out of js
Message-Id: <37BD36E2.6CC57087@privat.toplink.de>

Hi Jeremy,

well sure this is possible, but i "need" to do this on the other way. Any
thoughts ?

Thanks

Hartmut

Jeremy Gurney wrote:

> In article <37BD177A.4549A12C@privat.toplink.de>,
>   Hartmut =?iso-8859-1?Q?K=F6nig?= <koenig@privat.toplink.de> wrote:
> > Hi there,
> >
> > just ask: is it possible to fill a js-variable with the return-code of
> a
> > perl-script in js-script ?
> >
> > Thanks for any help
> >
> > Hartmut König
>
> It's possible to write the enitre HTML/Javascript document from a perl
> script filling in the variables as it is sent to the browser.
>
> Jeremy Gurney
> SAS Programmer  |  Proteus Molecular Design Ltd.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

--
Wem das Wasser bis zum Halse steht, der darf den Kopf
nicht haengen lassen.
             Joerg Schoenborn (General und Politiker)
---
Hartmut König




------------------------------

Date: Fri, 20 Aug 1999 12:37:04 GMT
From: Jeremy Gurney <c4jgurney@my-deja.com>
Subject: Re: execute a perl-script out of js
Message-Id: <7pji5f$lji$1@nnrp1.deja.com>

In article <37BD36E2.6CC57087@privat.toplink.de>,
  Hartmut =?iso-8859-1?Q?K=F6nig?= <koenig@privat.toplink.de> wrote:
> Hi Jeremy,
>
> well sure this is possible, but i "need" to do this on the other way.
Any
> thoughts ?
>

I'm not sure exactly what you're trying to do here but ...

(My hubmlest appologies to everyone in c.l.p.m as I'm about to go a bit
off topic.)

If you're using client side Javascript you cannot start up a process on
the server unless you fire off a a url request, so if you have to have a
pre written javascript routine dynamically fill a variable from a perl
cgi then you could do the following.

Have your javascript app in a frame which occupys 100% of the screen,
with your perl cgi output in a hidden frame. Have the perl cgi write a
simple HTML file containing a form (for no other reason than because
it's really easy to get the value from a form field). Reference your
form field from the javascript.

This would work but I'm not sure if this exactly what you're after,
could you give a bit more detail.

I'm lacking inspiration today so forgive me if this isn't what you
wanted.

Jeremy Gurney
SAS Programmer  |  Proteus Molecular Design Ltd.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 12:46:11 GMT
From: Paul Dobbs <pdobbs@home.com>
Subject: Find a substring of mixed type but NOT WhiteSpace?
Message-Id: <37BD4FF3.E3EBB373@home.com>

Hello again Masters.. 

I found some info from a post by "Bart" to be an excellent
exmaple
of how I can use the S/R function to tweak text layout. But
I still have
a problem.. lend me thy wisdom..

To grab a substring of just alphanumeric items which are 80
characters or longer
and NO whitespace, I can find that with $text =~
m%(\w{80,})%;

But how do I pick out a substring of mixed character types
(letter, number and 
symbol but not whitespace) that are >=80 characters long?

The encompassing text string is of variable length. 
The placement of the troublesome periods, slashes and such
are variable.

EG: The substring could be

AB34567890AB34567890//34567890..34567890$$34567890AB34567890AB34567890AB34567890

and be burried within a paragraph of normal english words.

Paul


------------------------------

Date: Fri, 20 Aug 1999 12:58:28 GMT
From: marcel.grunauer@lovely.net (Marcel Grunauer)
Subject: Re: Find a substring of mixed type but NOT WhiteSpace?
Message-Id: <37bd5f04.1634169@news>

On Fri, 20 Aug 1999 12:46:11 GMT, Paul Dobbs <pdobbs@home.com> wrote:

> But how do I pick out a substring of mixed character types
> (letter, number and 
> symbol but not whitespace) that are >=80 characters long?

/\S{80,}/


Marcel
Perl Padawan
-- 
sub AUTOLOAD{($_=$AUTOLOAD)=~s,^.*::,,;y,_, ,;print} Just_Another_Perl_Hacker();


------------------------------

Date: Fri, 20 Aug 1999 11:54:17 +0200
From: "Philip 'Yes, that's my address' Newton" <nospam.newton@gmx.net>
Subject: Re: hey everybody. can you help me?
Message-Id: <37BD25C9.15030BE@gmx.net>

Martien Verbruggen wrote:
> 
> In article <37bc41e7.0@news.barak.net.il>,
>         "adam" <adam1@barak-online.net> writes:
> 
> > Do you know any Windows software  that i design my script (not
> > coding it but "editing" it (like i don't really write the html
> > script when i work with FrontPage... ) ?
> 
> Possible translation of gibberish:
> 
> adam is looking for an IDE for Perl.

I think he wants a visual pointy-clicky Rapid Application Development
thing that spits out Perl at the back. Or some wizards or something.
After all, he compared it to FrontPage, where he doesn't have to write
any HTML tags but just "designs" a page.

Maybe he wants Visual Basic, or possibly a Perl consultant.

Cheers,
Philip


------------------------------

Date: Fri, 20 Aug 1999 11:22:59 GMT
From: ejehoel@my-deja.com
Subject: local perl
Message-Id: <7pjdqc$iff$1@nnrp1.deja.com>

Hi,

I've got this problem:
Currently, I'm only using a Toshiba laptop for programming in Perl.
I've installed Active State's Perl software. Now I would like to test
my perl scripts via the webbrowser.

==> I would like my computer to execute the perl-scripts as if they are
located on a server on the internet.


Best regards, Eli, Amsterdam, Netherlands


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 11:39:42 GMT
From: boschini@my-deja.com
Subject: Re: local perl
Message-Id: <7pjeps$j5m$1@nnrp1.deja.com>

In article <7pjdqc$iff$1@nnrp1.deja.com>,
  ejehoel@my-deja.com wrote:
> Hi,
>
> I've got this problem:
> Currently, I'm only using a Toshiba laptop for
programming in Perl.
> I've installed Active State's Perl software. Now
I would like to test
> my perl scripts via the webbrowser.
>
> ==> I would like my computer to execute the
perl-scripts as if they are
> located on a server on the internet.
>
yuo mean cgi ?
then you should install a web server (apache ;-))
and run your perls as cgi-bins...

ciao,

mateo
> Best regards, Eli, Amsterdam, Netherlands
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 14:07:14 +0200
From: Stephen Riehm <sr@pc-plus.de>
Subject: merging complex hashes?
Message-Id: <37BD44F2.B858D7B8@pc-plus.de>

Hi,

I have the sick desire to merge two complex hashes - more to the point,
I have
objects which contain objects which contain...., and when changes are
made, I
want to add those changes to the existing objects, without killing the
other
information.

ie:
$persobj = $newobj;	# no good, data in $persobj gets deleted
%$persobj = ( %$persobj, %$newobj );	# better, but only merges the keys
of the
					# top level hash.

I've written a routine to do a deep-merge, but it has problems, and I
was
wondering if anyone has already written a module to do this?

Many thanks in advance,

Steve
sr@pc-plus.de


------------------------------

Date: Fri, 20 Aug 1999 12:13:44 GMT
From: ceara_rea@hotmail.com
Subject: new to perl and a bit stupid
Message-Id: <7pjgph$km2$1@nnrp1.deja.com>

this is probably a very dumb question, but I've never used perl before
and I'm trying to write a script in it.........
I'm trying to extract some data from a file which is split up into
several sections, I'm only interested in data contained in one
particular section which has the form:-

SECTION HEADER
lots of text lines
that i want to do
something with
^$ (blank line marking end of section)

If I was writing this in awk I'd start at pattern /SECTION HEADER/ and
use the 'getline' function in a loop to get all the text lines until I
hit a blankline. Alas sob, sob there's no getline in perl so I'm stuck.
I've done a2p and this gives me a subroutine for getline (which
incidentally when I put it into my script doesn't work) but I'm not sure
that this is the best way to do it, I have an inkling that maybe I
should be putting the text lines of this section into an array and then
reading each $line of the array? but I haven't got a clue how to
construct it.
I'd greatly appreciate any help, and if somebody could spoon feed me the
code that would be even better.
Many thanks
Ceara


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Fri, 20 Aug 1999 10:57:14 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: OOP in perl - not modules!!!
Message-Id: <37be2d18.639546@news.skynet.be>

Mark-Jason Dominus wrote:

Hurray! The very first MJD post in c.l.p.m. that appears on my news
server!

Er... could it be that MJD has a new ISP? <mjd@op.net>

>Part 3, which sill cover inheritance, it not finished yet,
>unfortunately.  

This sentence doesn't seem to be too polished, either. :-)

	Bart.


------------------------------

Date: Fri, 20 Aug 1999 13:50:21 +0200
From: Stephen Riehm <sr@pc-plus.de>
Subject: Re: OOP in perl - not modules!!!
Message-Id: <37BD40FD.BFC8CC4B@pc-plus.de>

James Williamson wrote:

> As far as I'm aware a big limitation within Perl in attempting to fully
> embrace OOP is you can't inherit class variables.

The concept that an object is nothing more than a hash which knows
about itself is indeed very nice, and flexible, but I also have
problems with it. (although I must admit, I'm no OO guru)

For example, if you want to provide information about which attributes
an object may have, this is often done with a template hash in the
class, but derived classes can't use this template hash (although I
found several ways of passing information back and forth, they all had
their problems) - this is only partly because the class variables
aren't inherited - they really need to be 'merged' somehow (IMHO).

Another problem that I have is that methods defined in a base class
can't access the class variables of the class in which they are
called. Again I had trouble with this when checking for attribute
validity - the get and set methods could only access the attribute
template for the base clasee. (I know you can have an {'attributes'}
key in the object itself - but this causes problems when you have
persistent objects - the database get's filled with 'useless data')

Anyway - if you've got Sriram Srinivasan's "Advanced Perl Programming"
book, on page 135-137 he gives his 2c on the topic of inheritance.
Essentially he suggests that you think about 'interface
inheritance' instead of 'attribute inheritance'. I've now tried it,
and I must say I find it a better approach for perl programs - whether
it applies to OO in general I dare not speculate.

In essence, I reduced my classes to a minimum, and now have a lot of
'containers' which know about the interfaces of the objects they
contain. In my view not perfect, but quite OK.

Hope this helps,

Steve


------------------------------

Date: Fri, 20 Aug 1999 10:57:16 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Packages and parent packages
Message-Id: <37bf2dd8.831619@news.skynet.be>

Tom Phoenix wrote:

>You seem to think that there's some relationship between
>Grandmother::Mother::Daughter and Grandmother::Mother. Actually, although
>they may look similar, there's nothing connecting them.

Except the stash. Indeed, "Daughter::" is a key in the stash
%Grandmother::Mother:: . Why? Dunno. It seems silly, and inefficient to
me, that Perl has to traverse the tree main:: -> Grandmother:: ->
Daughter:: to find the variable $foo in
$Grandmother::Mother::Daughter::foo.

	Bart.


------------------------------

Date: Fri, 20 Aug 1999 13:33:32 +0100
From: "Martin" <contact@nativetongues.com>
Subject: Re: perl + mysql..
Message-Id: <7pjifm$gra$1@gxsn.com>

It's also worth Checking out,

www.wired.net/webmonkey and looking at the Backend articles for additional
stuff on mySQL and PHP3 which is probably going to be your next step...
There's a lot of information out there.. I'll try and dig out the links I
found on it all if you email me back.. (only cos I'll forget otherwise)

Martin


Doran L. Barton <fozz@xmission.xmission.com> wrote in message
news:7phjr6$e34$1@xmission.xmission.com...
> "Teru" <mtlam@hongkong.com> writes:
>
> >I'm going  to write a program in perl to show out the databases, tables
and
> >indexes of my MySQL databases, so that I can select databases and datas
> >through the web browser.
> >But I don't have any idea on how to do it ?
> >Does anyone know how ?
>
> >please give me some examples and informations. Thanks a lot.
>
> There is a Perl module DBI.pm which abstracts access to many database
> backends into a single interface. Once you have DBI.pm (available from any
> CPAN site <http://www.cpan.org/>), then you need to get the DBD (DBI
> Driver) file for the database backend you're using (in this case, MySQL).
> Once you have both installed, you'll do something like this:
>
>   use DBI;
>
>   $dbh = DBI->connect("dbi:mysql:dbname") or
>     die "Could not connect to the database!";
>
>   $sth = $dbh->prepare("select * from table_one");
>   $rv = $sth->execute;
>
>   if($rv) {
>     for(1..$rv) {
>       $row= $sth->fetchrow_hashref;
>       print
> "Name: $row->{name}\n",
> "Address: $row->{address}\n";
>     }
>   }
>
>   $dbh->disconnect;
>
> See the DBI manpage (type 'perldoc DBI') for a complete set of information
> on how to use DBI functions like prepare(), do() and execute().
>
> -=Fozz
>
> --
> Doran L. Barton = fozz@xmission.com && http://www.xmission.com/~fozz/
> ** Dynamic web developer, Perl hacker.  Using the Internet since 1990. **
>  "I have learned much more about Microsoft by using the Linux operating
>   system than I ever would have done by using Windows." - Neal Stephenson






------------------------------

Date: 20 Aug 1999 10:15:02 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl compiler for DOS/Windows?
Message-Id: <37bd1c96_2@newsread3.dircon.co.uk>

Bart Lateur <bart.lateur@skynet.be> wrote:
> 
> Actually, it's some sort of extended memory driver. 
> 	

'DPMI Server' ;-}

/J\
-- 
"When the boys in the playground found out that I had a potentially
fatal peanut alergy they would shove me up against a wall and make me
play Russian roulette with a bag of Revels" - Milton Jones


------------------------------

Date: Fri, 20 Aug 1999 09:12:52 GMT
From: marcel.grunauer@lovely.net (Marcel Grunauer)
Subject: Re: PERL EDITOR
Message-Id: <37be298b.490365@news>

On Thu, 19 Aug 1999 15:03:32 -0300, "Webmaster"
<webmaster@compre-ya.com> wrote:

> Does anyone of you know an good and nice editor for writting perl code?
> 
> I´m getting tired of notepad

Emacs (www.emacs.org)
vi (URL?)
HomeSite (www.allaire.org)
CodeWright (www.premia.com)


Marcel
Perl Padawan
-- 
sub AUTOLOAD{($_=$AUTOLOAD)=~s,^.*::,,;y,_, ,;print} Just_Another_Perl_Hacker();


------------------------------

Date: Fri, 20 Aug 1999 12:26:25 +0200
From: Alex Farber <alex@kawo2.rwth-aachen.de>
To: Webmaster <webmaster@compre-ya.com>
Subject: Re: PERL EDITOR
Message-Id: <37BD2D51.49AE3541@kawo2.rwth-aachen.de>

Hi,

Webmaster wrote:
> Does anyone of you know an good and nice editor for writting perl code?

try Vim 5.4 from http://www.vim.org - it has binaries for Win9x and UNIX,
syntax highlighting, marks, registers, filtering, nice help and so on...

> I´m getting tired of notepad

Choose Vim, Emacs, Ultraedit or whatever but don't use notepad for Perl :-)

Regards
Alex

-- 
Ich studiere  Elektrotechnik (Technische  Informatik) an der RWTH Aachen
und bin ein guter Perl-Programmierer (arbeite seit 4 Jahren als Intranet-
Entwickler). Kann auch C, Java, SQL, JavaScript und HTML, CGI und TCP/IP.
Ich suche eine gut bezahlte  Diplomstelle in Koeln, Aachen oder Umgebung.


------------------------------

Date: 20 Aug 1999 12:14:49 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: PERL EDITOR
Message-Id: <37bd38a9_2@newsread3.dircon.co.uk>

Webmaster <webmaster@compre-ya.com> wrote:
> Does anyone of you know an good and nice editor for writting perl code?
> 

Please see <http://www.perl.com/reference/query.cgi?editors> before the
usual boring thread about peoples favourite editors starts.

/J\
-- 
"Virtual reality wouldn't be this wet" - Lucas, Seaquest DSV


------------------------------

Date: Fri, 20 Aug 1999 12:38:21 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: PERL EDITOR
Message-Id: <37bd4a29.8080401@news.skynet.be>

Webmaster wrote:

>Does anyone of you know an good and nice editor for writting perl code?
>
>I´m getting tired of notepad

Yes. Go to the links list at
<http://www.perl.com/reference/query.cgi?section=editors>; in particular
the link to "Perl for Win32 Editors".

One that is (still) missing from that list is the GWD text editor,
downloadable from <www.gwdsoft.com>. Not free, but not expensive either,
it has a (crude) syntax highlighter for Perl, and if you install Perl as
a "tool", you can launch the script from within Perl, and capture the
output into a window. Nice.

	Bart.


------------------------------

Date: Fri, 20 Aug 1999 08:07:52 -0400
From: Rob Cunningham <rkc@ll.mit.edu>
Subject: Perl Threads: Discussion area?; Comment on www.perl.com
Message-Id: <37BD44DC.444FD8E7@ll.mit.edu>

I want to learn more about the upcoming 5.6 perl threads model.

I have built a large, production-quality system on the current model (I
know, that's not recommended, but I had my reasons) and what to
understand what's coming so I can plan for it (and comment on it).

I have seen Sarathy's realaudio comment (but not heard it--firewalls
stop realaudio).

Thanks for any pointers you can provide.

Rob
-- 
Dr. Robert K. Cunningham       Information System Technology Group
  rkc@ll.mit.edu                     MIT Lincoln Laboratory           
*** My comments, my opinions: my responsibility.
PGP key available from http://pgpkeys.mit.edu:11371


------------------------------

Date: Fri, 20 Aug 1999 12:48:55 GMT
From: Serguei Goumeniouk <serguei.goumeniouk@midwal.ca>
Subject: Perl without C compiler.
Message-Id: <37BD4D4D.5B71612@midwal.ca>

       Dear Experts!
  I have to move my programs and perl scripts from a development machine
to a production one. By convention we have no C compiler at our
production environment. Both computers are Sun UNIX boxes.
1) Is it possible to install perl without C compiler (just copy a file
structure from one computer to another)?
2) Theoretically, I can install C for a short time at production
computer, install perl and delete C. Will perl work after these actions?
In other words: "Does perl need C compiler?"
3) Is it possible to install new perl modules without C compiler?
4) Are there any other solutions for this job?
   Regards,
         Serguei.



------------------------------

Date: Fri, 20 Aug 1999 13:36:21 +0100
From: "Martin" <contact@nativetongues.com>
Subject: Re: perl-DBI problem
Message-Id: <7pjifo$gra$2@gxsn.com>

Doran got my vote on this one too..

Chances are you might want to consider uninstalling Apache, PHP3, mysql,
Mod_perl and the like and reinstalling from the source code... it may take
time and grief but NOTHING compard to the grief of manuals and docs that
relate to links that Redhat in it's wisdom has ignored when putting togther
the RPM's.

The benefits are docs, etc.. that MAKE SENSE... and trouble shooting that
you can actually use...nothing beats that ever

That's my ten penneth worth anyway

Martin

Doran L. Barton <fozz@xmission.xmission.com> wrote in message
news:7phjul$ect$1@xmission.xmission.com...
> warmongr <brazell@bmh.com> writes:
>
> >When trying to load DBI.so from a script I get the following message:
> >----
> >Can't load '/usr/lib/perl5/5.00503/i386-linux/auto/DBI/DBI.so' for
> >module DBI: /usr/lib/perl5/5.00503/i386-linux/auto/DBI/DBI.so: undefined
> >symbol: dirty at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line
> >169.
>
> > at ./list.pl line 3
> >BEGIN failed--compilation aborted at ./list.pl line 3.
> >----
> >I previously had DBI up and running on a RH5.2 using
> >perl-5_004m4-1_i386.rpm.
>
> Personally, I'd just grab the DBI module package from a closeby CPAN site
> and re-make it and install it.
>
> -=Fozz
>
> --
> Doran L. Barton = fozz@xmission.com && http://www.xmission.com/~fozz/
> ** Dynamic web developer, Perl hacker.  Using the Internet since 1990. **
>  "I have learned much more about Microsoft by using the Linux operating
>   system than I ever would have done by using Windows." - Neal Stephenson




------------------------------

Date: Fri, 20 Aug 1999 10:57:19 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Python for Perl users: random thoughts
Message-Id: <37c02e9d.1028635@news.skynet.be>

Jon Peterson wrote:

>Tom Christiansen <tchrist@mox.perl.com> wrote:
>
>> COOLNESS:
>>     You can "foreach" across multiple items.
>> 	a = [ [1,2], [3,4], [5,6] ]
>> 	for (i,j) in a:
>> 	    print i+j
>>       3
>>       7
>>       11
>
>Hmmm, I like it, and it seems very perl-esque to me. Any chance of Perl 
>supporting this in the future?

This comes close:

	$\ ="\n";
	for ([1,2], [3,4], [5,6]) {
	    my($i,$j) = @$_;
	    print $i+$j;
	}

although it's probably not the same. And then, there's this:

	$\ ="\n";
	my @ary = ((1,2), (3,4), (5,6)); # = (1 .. 6)
	while (@ary) {
	    my($i,$j) = splice @ary, 0, 2;
	    print $i+$j;
	}

I bet you want this effect, but without the need for the temporary
array.

	Bart.


------------------------------

Date: Fri, 20 Aug 1999 12:56:56 +0100
From: James Powell <jamespo@N0SPAM.yahoo.com>
Subject: Re: Request for Comments: www.perl.com
Message-Id: <37BD4288.59FB2D40@N0SPAM.yahoo.com>

Hmm that's a bit harsh. You'll have to go a long way to find (big) sites
designed specifically with lynx in mind. Perhaps that's why you
keep going to plain text archives (come back gopher, all is forgiven).

I like the cookbook snippets, the colour scheme & general design, 
the discussion/articles (eg recent ones on prototypes).

A useful non-WWW addition would be a news server (news.perl.com?)
with many specific groups on DBI, CGI, XML, daemons, win32, etc. 
Perhaps with a web interface to this as well.
And existing mailing lists (eg modperl) could be mirrored there.

For content, I *really* like http://tpi.perl.org/news.html

James

Abigail wrote:
> 
> [snip]
> 
> In other words, www.perl.com gives the impression to be designed for
> looks. Sites designed for looks tend to lack content. So, why go there?
> 
> I seldomly go there. Even before it was redesigned. I used to go there
> when it was still run from someones home in Colorado. But I quickly
> lost interest after O'Reilly took over. The only times I visit
> www.perl.com is when someone gives a specific URL somewhere on the site,
> with a description that tickles my interest.
> 
> I recently noticed that a very significant time of my "web surfing"
> is spend viewing documents of type "text/plain", which seems to be
> quickly re-replacing HTML as the lingua franca of the net.
> 
> ~~     What you would like to see at www.perl.com
> ~~     What you might like to help with at www.perl.com
> 
> The sad thing is, I wouldn't miss www.perl.com if it was suddenly gone
> and would never reappear.
>


------------------------------

Date: Fri, 20 Aug 1999 14:19:59 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Request for Comments: www.perl.com
Message-Id: <Pine.HPP.3.95a.990820141043.20918E-100000@hpplus03.cern.ch>

On Fri, 20 Aug 1999, James Powell yelled into the void:

> Hmm that's a bit harsh. You'll have to go a long way to find (big) sites
> designed specifically with lynx in mind. 

_What's_ a bit harsh?  If you have a point in mind, then quote that
point.  (Not the entire posting, frchrissake).

What the heck do you think you mean, "sites designed specifically with
lynx in mind".  If a site is designed _for_ the WWW, then Lynx is not
excluded.  While it's possible to apply a few simple tips that produce
better results for Lynx without doing any harm to anyone else, I don't
know of anyone (except perhaps where Lynx is the specific topic of
discussion) who designs _specifically_ for Lynx: that would be to
pervert the whole idea of the WWW.

> Perhaps that's why you
> keep going to plain text archives 

What the heck are you doing here if you have a religious objection to
plain text?  Look, O Purveyor of worn out Straw Man Arguments, it isn't
about plain text, it's about proper techniques of graceful fallback on
the World Wide Web.

[Comprehensive jeopardised quotage now removed.]

Oh, http://ppewww.ph.gla.ac.uk/~flavell/www/html-smac.html




------------------------------

Date: 20 Aug 1999 10:25:10 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Split comp.lang.perl.misc
Message-Id: <37bd1ef6_2@newsread3.dircon.co.uk>

James Liu <jyoyoliu@hotmail.com> wrote:
> There really should be more perl newsgroups.  There are too many posts here.
> I guess we could add
> 
<snip>
> 
> that should really clear up traffic and make finding what people want much
> easier.  please suggest others.
> 
> 

It wont, in fact cant possibly help:  most of the garbage in this group
is the result of the clueless posting inappropriate things in the first
place - creating new groups will just create more targets for these 
inappropriate posts.  If people arent clueful enough now to post their,
say, CGI,HTML,Webserver questions to the correct group and not here I
cant possibly see how this can help.

These kind of suggestions come up every once in a while like some kind of
weird ritual and the conclusion is always the same - we dont need more
groups we need more clueful posters.

/J\
-- 
"Killing myself is the last thing I'd ever do" - Homer Simpson


------------------------------

Date: Fri, 20 Aug 1999 10:18:52 +0100
From: "James Williamson" <james.williamson@bbc.co.uk>
Subject: Re: Split comp.lang.perl.misc
Message-Id: <7pj6kp$gsv$1@nntp0.reith.bbc.co.uk>


James Liu wrote in message ...
>There really should be more perl newsgroups.  There are too many posts
here.
>I guess we could add
>
>comp.lang.perl.reg
>                       .io
>                       .win32
>                       .llama   #for newbie posts. this one should
>definately be moderated, with an automated look in FAQ response
>                       .database
>                       .otherlangs  #for arguning about which langs are
>better, discussing a2p s2p.
>
>that should really clear up traffic and make finding what people want much
>easier.  please suggest others.

What about comp.lang.perl.spam? I'd definitely subscribe to that one....

James Williamson

james.williamson@bbc.co.uk





------------------------------

Date: Fri, 20 Aug 1999 10:57:12 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: what does eq do on lists?
Message-Id: <37bd2c16.381399@news.skynet.be>

Sam Holden wrote:

>Makes sense now. You can't add, remove, or move elements in the list, but you
>can do whatever you normally could do to those elements. So if they are
>variables you can assign to them, if they are constants like 1, you can't.

The technical term is that each item must be an "L-value": you must be
able to put it on the left side of an assignment, as in { $x = 3 }.

>Cool.

Indeed. Also try this variation:

    @a = ('A'..'Z');
    $x = 1; $y = 2;
    foreach ($x, @a[5..8], $y) {
        $_ = "Bonzo was here!";
    }
    print "\$x = $x\n";
    print "\@a = @a\n";
    print "\$y = $y\n";

Inside the loop, $_ serves as an "alias" for the original scalar, so you
end up modifying the originals.

	Bart.


------------------------------

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu. 

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 599
*************************************


home help back first fref pref prev next nref lref last post