[12429] in Perl-Users-Digest
Perl-Users Digest, Issue: 6029 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 17 08:07:14 1999
Date: Thu, 17 Jun 99 03:00:20 -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 Thu, 17 Jun 1999 Volume: 8 Number: 6029
Today's topics:
/usr/bin/ld: cannot open -lgdbm: no file or directory <danielrod@nts.co.jp>
Re: /usr/bin/ld: cannot open -lgdbm: no file or directo <gellyfish@gellyfish.com>
Re: Afraid to ask about Y2K! (Abigail)
Re: Bit Twiddling Troubles <sb@sdm.de>
GDBM and no lock... <dataadm@elfi2.rz.ruhr-uni-bochum.de>
Getting the current directory path/name libbe@my-deja.com
Re: How can I get fork to work (in NT)? <pavel@asei.cz>
Re: How to extract emails from Outlock Express <gellyfish@gellyfish.com>
Re: Ineed major help creating a CGI script with PERL (Abigail)
Re: Is it better perl than awk ? (Bart Lateur)
Re: Is it better perl than awk ? <rra@stanford.edu>
Re: MacPerl newbie: installing module problem (Rory C-L)
Re: net::ftp <gellyfish@gellyfish.com>
Re: overwrite "print" ? <matt.sergeant@ericsson.com>
Re: perl on-line <dave@dave.org.uk>
Perl Script Question <microfhy@netvigator.com>
Perl Script Question <microfhy@netvigator.com>
Re: Practical Extraction and Report Language <matt.sergeant@ericsson.com>
Re: Real perl Y2K bug! (Abigail)
Regular expresions as parameters <derek@realware.com.au>
Re: s and tr (Abigail)
S/MIME messages with perl? (Reiner Buehl)
Re: saving uploaded file (Abigail)
Re: simple quesiotn about array (Abigail)
Re: What is functional difference between .pm and .pl? (Bart Lateur)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 17 Jun 1999 08:03:13 GMT
From: Daniel <danielrod@nts.co.jp>
Subject: /usr/bin/ld: cannot open -lgdbm: no file or directory
Message-Id: <7kaa3u$d6q$1@nnrp1.deja.com>
I am trying to install Perl 5.00404, but I keep getting the error
message:
/usr/bin/ld: cannot open -lgdbm: no file or directory
Can someone tell me how this problem can be corrected?
(I am installing Perl straight from the source. Although my
distribution (TurboLinux 1.0,kernel 2.036) installs Perl by default, I
removed it using the RPM package remover, in order to re-install
straight from the source. My eventual aim is to install mod_perl, and
it was my understanding that in order to do this, Perl itself should
also be installed from scratch, using the source).
Thank you.
--Daniel
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 17 Jun 1999 10:09:31 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: /usr/bin/ld: cannot open -lgdbm: no file or directory
Message-Id: <3768bb4b@newsread3.dircon.co.uk>
Daniel <danielrod@nts.co.jp> wrote:
> I am trying to install Perl 5.00404, but I keep getting the error
> message:
> /usr/bin/ld: cannot open -lgdbm: no file or directory
>
> Can someone tell me how this problem can be corrected?
>
Download and build gdbm from <http://www.gnu.org/software/gdbm/gdbm.html>
You might consider getting Perl 5.00503 while you're at it.
/J\
--
"Is there no demand for mechanical pussies?" - Mrs Slocombe
------------------------------
Date: 17 Jun 1999 01:12:20 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Afraid to ask about Y2K!
Message-Id: <slrn7mh4e2.ejb.abigail@alexandra.delanet.com>
Lee (rlb@intrinsix.ca) wrote on MMCXVI September MCMXCIII in
<URL:news:B38DE1899668E9DBB@204.112.166.88>:
`` In article <7k9ecd$sg7$1@shell1.ncal.verio.com>,
`` gerg@shell.ncal.verio.com (Greg Andrews) wrote:
``
`` >tchrist@mox.perl.com (Tom Christiansen) writes:
`` >> [courtesy cc of this posting mailed to cited author]
`` >>
`` >>In comp.lang.perl.misc,
`` >> "J|rgen Exner" <juex@my-dejanews.com> writes:
`` >>:Is there anything wrong with 31.Dez, 24:00 being the same as 01.Jan, 00:00 ?
`` >>
`` >>You can't have 24:00 -- that's out of the valid range. Hours are
`` >>guaranteed less than 24. After 11:59:59pm comes 12:00:00midnight.
`` >>
`` >
`` >Except when a leap second creates 23:59:59, followed
`` >by 23:59:60 and then 00:00:00.
``
`` Is the domain of this discussion computational?
``
`` POSIX declares that leap seconds shall not be reckoned.
POSIX can declare whatever they want. The truth is, leap seconds do happen.
Your system clock might never show '23:59:60', any data that has timestamps
on it *may* have 23:59:60 as a timestamp. Specially if it's coming from a
field like astronomy, or some place else, where they do think keeping time
is important.
Abigail
--
Does POSIX compliance mean that your system clock has to be 22 seconds off?
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 17 Jun 1999 08:04:20 GMT
From: Steffen Beyer <sb@sdm.de>
Subject: Re: Bit Twiddling Troubles
Message-Id: <7kaa64$2si$3@solti3.sdm.de>
In article <37684A70.937EF529@amdahl.com>, Hal Mounce <whm10@amdahl.com> wrote:
> > You should probably 'use strict' and put quotes around that L. But you
> > should even more probably use N instead of L (or see the perlfunc manpage
> > to learn why I say that, at least).
> I'll look into the pragma. The N is exactly what I want, thanks. I
> spent hours trying to figure out how to guarantee a 4 byte, big endian
> result without having to ugly up the code. I gave up and was using L
> "for now."
> > You seem to want a string, so maybe that number
> > should be replaced with "\xC0\0\0\0".
> Way cool, thanks again.
> It sure was easier to do this stuff in assembler. A small price to pay,
> however, considering I've written and debugged six months worth of code
> in the past week and a half.
You'd probably do yourself a favour by using the Perl module Bit::Vector,
which makes all this much easier!
It's internally written in C, so you get the speed of C combined with the
ease of use of Perl.
See my sig below for URLs where to download it from.
Hope this helps! :-)
Best regards,
--
Steffen Beyer <sb@engelschall.com>
http://www.engelschall.com/u/sb/whoami/
http://www.engelschall.com/u/sb/download/
http://www.perl.com/CPAN/authors/id/STBEY/
http://www.oreilly.de/catalog/perlmodger/bnp/
------------------------------
Date: Fri, 11 Jun 1999 16:42:16 +0100
From: Sebastian Ahrens <dataadm@elfi2.rz.ruhr-uni-bochum.de>
Subject: GDBM and no lock...
Message-Id: <37612E58.AD8E5A6C@elfi2.rz.ruhr-uni-bochum.de>
Hmm I4ve been trying to find out thisone for a while, but for the very
first time after reading all the manpages and perldoc-pages
I still don4t have a clue how to let two perlscripts tie one hash-file
for GDBM.
Could anyone give me a hint?
-Sebastian-
------------------------------
Date: Thu, 17 Jun 1999 08:33:47 GMT
From: libbe@my-deja.com
Subject: Getting the current directory path/name
Message-Id: <7kabtb$dm4$1@nnrp1.deja.com>
Hello!
I have a simple question (if this is the second post of the same
question by me, blame Deja.com...):
How can I get the current working directory path and/or name, like "pwd"
in Unix and "cd" without parameters in DOS? I know about chdir(),
opendir() and all those, but I haven't found anything like "getdir()" or
anything...
Well, thanks in advance
/Henrik
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Thu, 17 Jun 1999 11:02:26 +0200
From: Pavel Hlavnicka <pavel@asei.cz>
Subject: Re: How can I get fork to work (in NT)?
Message-Id: <3768B9A2.A35A130A@asei.cz>
Hi,
It depends ...
If you want to fork to launch child process and stay alive, you can use
Win32::Process module, if you want something else, I don't know :-)
Good luck
--
Pavel Hlavnicka
A.S.E.I. Ltd; Prague
tel.: +420 2 24106102
e-mail: pavel@asei.cz
------------------------------
Date: 17 Jun 1999 09:43:43 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: How to extract emails from Outlock Express
Message-Id: <3768b53f@newsread3.dircon.co.uk>
Mosl Roland <founder@pege.org> wrote:
> Tom Phoenix <rootbeer@redcat.com> wrote in message
> news:Pine.GSO.4.02A.9906161353580.26850-100000@user1.teleport.com...
>
>> If you think there might be a module made for working with these files
>> from Perl, check the Module List on CPAN.
>
> CPAN is so search engine unfriednly designed,
> that I stoped even to try to find there something
>
>
Then in you are in big trouble because more often than not people will
simply refer to CPAN in that way.
Anyhow you may also want to look at:
<reference.perl.com/query.cgi?mail>
As I happen to know that there is stuff described there that will be of use
to you ...
/J\
--
"My codpiece layeth awkwardly across the nadgers" - Declan Donnelly
------------------------------
Date: 17 Jun 1999 01:14:34 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Ineed major help creating a CGI script with PERL
Message-Id: <slrn7mh4i9.ejb.abigail@alexandra.delanet.com>
dream69 (info@lucem.com) wrote on MMXCV September MCMXCIII in
<URL:news:%0f33.44$N13.281@newsfeed.slurp.net>:
-- How do I make a script in the first place?
You hire a programmer.
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 08:00:05 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Is it better perl than awk ?
Message-Id: <376aaa42.9654332@news.skynet.be>
Ilya Zakharevich wrote:
>> Rubbish. I use GNU Perl for MS-DOS, under Win3.1, all the time.
>
>There is no GNU Perl, thus you cannot run it.
So DJGPP isn't GNU?
<http://www.gnu.org/software/perl/perl.html> classifies Perl under GNU,
and <http://www.delorie.com/djgpp/> says:
DJGPP is a complete 32-bit C/C++ development system for Intel 80386
(and higher) PCs running DOS. It includes ports of many GNU
development utilities.
This is enough to make me believe that DJGPP Perl falls under GNU for
DOS.
Bart.
------------------------------
Date: 17 Jun 1999 01:14:06 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Is it better perl than awk ?
Message-Id: <ylu2s72qi9.fsf@windlord.stanford.edu>
In comp.lang.perl.misc, Bart Lateur <bart.lateur@skynet.be> writes:
> Ilya Zakharevich wrote:
>> There is no GNU Perl, thus you cannot run it.
> So DJGPP isn't GNU?
Calling the Perl that comes with DJGPP "GNU Perl" is sort of like calling
the Perl that comes with Linux "Linux Perl" or the Perl that comes with
IRIX 6.5 "SGI Perl." It makes sense in the context of what you're talking
about, but it sounds like you're attributing authorship to "GNU," which
isn't correct.
I realize that technically "GNU" is just the operating system that the FSF
folks are putting together, and in that sense it makes as much sense to
include Perl in that as it does to include Perl in a Linux distribution.
But people will commonly read "GNU Perl" as "FSF Perl," and the FSF has
nothing to do with the writing or maintenance of Perl.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Thu, 17 Jun 1999 09:09:53 +0100
From: 'x'campbell-lange@easynet.co.uk (Rory C-L)
Subject: Re: MacPerl newbie: installing module problem
Message-Id: <'x'campbell-lange-1706990909530001@campbell-lange.easynet.co.uk>
Thanks for all the advice, Paul.
Its much appreciated
Rory
In article <y%V93.1191$S2.70298@iad-read.news.verio.net>,
schinder@leprss.gsfc.nasa.gov wrote:
>In <'x'campbell-lange-1606990902110001@campbell-lange.easynet.co.uk>
'x'campbell-lange@easynet.co.uk (Rory C-L) writes:
>
>>I am having problems understanding the installation requirements of Chris'
>>Mac-OSA-Simple-0.51 module.
>
>>Basically, I don't understand the requirements for installing Simple.pm.
>
>>I have placed Simple.pm in a folder called "site_perl" in the same
>>directory as MacPerl itself, and directed MacPerl to see the directory in
>>the library search path. I have run the tests below (needless to say, I
>>don't understand what makefile.pl is for - I don't have SDK installed).
>>Test.pl says that it can't find Simple.pm in @INC, and I have confirmed
>>this by printing out @INC.
>
>Sure it can't, because you've put it in the wrong place. You should
>think of
>
>use Mac::OSA::Simple;
>
>as indicating a platform portable path in one of the folders MacPerl
>searches by default. Simple.pm should be in a folder named "OSA" in a
>folder named "Mac" in, say, the site_perl folder. In MacSpeak, you
>should put Simple.pm in "...:MacPerl f:site_perl:Mac:OSA:Simple.pm".
>
>>In desperation, I also copied Simple.pm to ...:MacPerl f:ext:Mac:OSA:
>>(which seems to be the required location from the error message), without
>>any luck.
>
>Not quite right. ext is not searched by default.
>
>>From Makefile.pl
>> " # On MacOS, we need to build under the Perl source directory or have the
>> MacPerl SDK installed in the MacPerl folder."
>
>>Second line from test.pl
>> "# Can't locate Mac/OSA/Simple.pm in @INC."
>
>>I'd be grateful for anyone who could help me with this beginner's question.
>
>You'll be *much* happier if you download and install Chris Nandor's
>cpan-mac collection of tools (either from http://pudge.net/macperl/ or
>from any CPAN site in his directory, CPAN/authors/id/CNANDOR.) They
>make installing modules about as painless as it's going to get under
>MacOS. They come with an installer which will install them in the
>right place.
>
>>Best wishes
>>Rory
>
>
>>p.s.
>>Chris' whichMacPerl.pl gives me the following printout. Any ideas?
>
>> You're running on a PowerPC-based Mac OS system.
>>
>> Checking the versions of some system files:
>> File Version Needed Version Present
>> --------------------------- -------------- ---------------
>> AppleScriptLib 1.2.2 1.2.2
>> I recommend installing the regular MacPerl distribution.
>
>>--
>>please remove the 'x' to reply
>
>--
>Paul J. Schinder
>NASA Goddard Space Flight Center
>schinder@leprss.gsfc.nasa.gov
--
Please remove the 'x' to reply
------------------------------
Date: 17 Jun 1999 09:50:42 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: net::ftp
Message-Id: <3768b6e2@newsread3.dircon.co.uk>
boris_cownie@my-deja.com wrote:
>
>
>> Use the PPM (ActiveState's Perl Package Manager) to install libnet,
>> which contains Net::FTP (amongst other things). Just open a command
>> wndow, type "ppm", and then, within the ppm, type "install libnet".
>
> I've done all this and installed it on NT. However it looks
> like transfering big binary files from the NT machine does
> not work. Only the first couple of hundred bytes get sent,
> ascii files are sent OK. Has anyone else seen a similar problem ?
> I'm transfering to a linux box.
>
read about binmode() in the perlfunc documentation.
/J\
--
"You don't watch the Eurovision Song Contest to hear good music" -
Katrina Leskanich, Katrina and the Waves
------------------------------
Date: Thu, 17 Jun 1999 10:12:25 +0100
From: Matt Sergeant <matt.sergeant@ericsson.com>
Subject: Re: overwrite "print" ?
Message-Id: <3768BBF9.DE3AA880@ericsson.com>
Christoph Bergmann wrote:
>
> and: is there any trick to simulate the overriding of "print"?
Yes - you can tie a filehandle. You could take a look at how I did it in
Win32::ASP - on CPAN, where I overload print to output to
$Response->Write (and do some buffer sizing stuff because
$Response->Write croaks on output > 12800b...).
Took me a bloody long time to figure out too... :)
Matt.
------------------------------
Date: Thu, 17 Jun 1999 10:27:47 +0100
From: "Dave Cross" <dave@dave.org.uk>
Subject: Re: perl on-line
Message-Id: <7kaemj$91$1@starburst.uk.insnet.net>
Leonid Goltser wrote in message <7k9bgs$oi8$1@autumn.news.rcn.net>...
>I want to try to run perl scripts (with cgi) on-line but I can't find a
>server that supports perl.
>Where can I upload my scripts? (Preferably free).
Download Apache <http://www.apache.org> and test your CGI scripts on your
own PC.
hth,
Dave...
------------------------------
Date: Thu, 17 Jun 1999 17:37:47 +0800
From: John Fung <microfhy@netvigator.com>
Subject: Perl Script Question
Message-Id: <3768C1EB.E359A730@netvigator.com>
Perl Script Question
Dear Sir,
I'm having problem when writing perl script, I would to have
a perl script that when I input my name : JJ and age : 19, then
click "Send", it will display in another page :
Your Name is JJ
Your age is 19
Please help me and reply !!
Thank you very much for your help !!
--
Yours sincerely,
John Fung
------------------------------
Date: Thu, 17 Jun 1999 17:38:00 +0800
From: John Fung <microfhy@netvigator.com>
Subject: Perl Script Question
Message-Id: <3768C1F8.AAE50709@netvigator.com>
Perl Script Question
Dear Sir,
I'm having problem when writing perl script, I would to have
a perl script that when I input my name : JJ and age : 19, then
click "Send", it will display in another page :
Your Name is JJ
Your age is 19
Please help me and reply !!
Thank you very much for your help !!
--
Yours sincerely,
John Fung
------------------------------
Date: Thu, 17 Jun 1999 10:17:11 +0100
From: Matt Sergeant <matt.sergeant@ericsson.com>
Subject: Re: Practical Extraction and Report Language
Message-Id: <3768BD17.2F242F30@ericsson.com>
Jonathan Stowe wrote:
>
> Fred Ruffet <fruffet@kaptech.com> wrote:
> > Hi, everybody
> >
> > I need to write a small paper ON (not in) perl. I've searched for many
> > information, but all I obtained was the (a) meaning of "perl" which his the
> > subject of this message. I would like to ask a question :
> > When is perl born ? a year would be enough, but if anybody knows of a
> > precise hour when the light came on Larry Wall... :-)
> >
>
> see the perlhist manpage or
>
> <http://www.perl.com/CPAN/doc/manual/html/pod/perlhist.html>
Also, Larry's state of the onion addresses (aka keynotes) could be of
use. See http://www.wall.org.
Matt.
------------------------------
Date: 17 Jun 1999 01:02:57 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Real perl Y2K bug!
Message-Id: <slrn7mh3sg.ejb.abigail@alexandra.delanet.com>
Bill (moseley@best.com) wrote on MMCXV September MCMXCIII in
<URL:news:MPG.11d1d9144861ba5b989749@206.184.139.132>:
== Ok, that subject is a dirty trick.
*plonk*
Abigail
--
perl -wle 'print "Prime" if ("m" x shift) !~ m m^\m?$|^(\m\m+?)\1+$mm'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 19:39:00 +1000
From: Derek Lavine <derek@realware.com.au>
Subject: Regular expresions as parameters
Message-Id: <3768C234.F2F911A9@realware.com.au>
Hi all,
I would like to be able to call a function passing it a hash of regular
expressions and a hash of field values. Both hashes will have a common
index (namely the field names) to which the field values correspond.
My function will then need to match key's in the two hashes and apply
the regular expression to the data for the corresponding key.
So I am wondering how do I pass a regular expression as a 'normal'
string inside a hash and then how do I make it behave like a regular
expression inside my function
# for example if I have a date string
$date_opened = "1999-01-01 10:15:00", # the following
$date_opened =~ s/(\w*) (.*)/$1/g; # removes the time component
but I would like to say this
%data_hash = ( date_opened => $date_opened
, #other keys and values );
%reg_hash = ( date_opened => "s/(\w*) (.*)/$1/g"
, #other keys and expressions );
%new_data_hash = myfunc( \%data_hash, \%reg_hash );
so new_data_hash would look like this
( date_opened => "1999-01-01"
, #other keys and modified values );
I guess in esscense I am asking is it possible to do this
$date_opened =~ $myreg_expression; # so that the regular expression gets
applied not assigned.
thanks for taking the time to read this, and thanks for any help you may
offer. I am reasonably new to perl so please do not assume to much
knowledge on my part when sending answers.
thanks a bunch
derek
------------------------------
Date: 17 Jun 1999 01:00:24 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: s and tr
Message-Id: <slrn7mh3nl.ejb.abigail@alexandra.delanet.com>
Matt (splinter@monmouth.com) wrote on MMCXV September MCMXCIII in
<URL:news:7k9cep$r8d$1@news.monmouth.com>:
{} Hi,
{}
{} I have this database...records look like this:
{}
{} 0001:something:something:something:something\n
{} 0002:something:something:something:something\n
{} 0003:something:something:something:something\n
{} 0004:something:something:something:something\n
{} 0005:something:something:something:something\n
{}
{} Now, when a user submits a form saying he wants to delete the record with
{} and id of 0003 I want to open up the database, and use something to delete
{} it.
RTFFAQ.
Abigail
--
perl -MLWP::UserAgent -MHTML::TreeBuilder -MHTML::FormatText -wle'print +(
HTML::FormatText -> new -> format (HTML::TreeBuilder -> new -> parse (
LWP::UserAgent -> new -> request (HTTP::Request -> new ("GET",
"http://work.ucsd.edu:5141/cgi-bin/http_webster?isindex=perl")) -> content))
=~ /(.*\))[-\s]+Addition/s) [0]'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 08:50:04 GMT
From: reiner@asta4.rz.fh-ulm.de (Reiner Buehl)
Subject: S/MIME messages with perl?
Message-Id: <3768b6a1.2026934@news.bbn.hp.com>
Hi,
is there a module for creating S/MIME encrypted mails with perl or a easy way
to create such mails using the MIME and encryption modules from CPAN?
Reiner Buehl.
------------------------------
Date: 17 Jun 1999 01:03:47 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: saving uploaded file
Message-Id: <slrn7mh3u2.ejb.abigail@alexandra.delanet.com>
Ryan Corder (uucon@my-deja.com) wrote on MMCXV September MCMXCIII in
<URL:news:7k980s$1pn$1@nnrp1.deja.com>:
{} I'm new to perl, how do i use this?
Look up use in the manual.
Abigail
--
perl -wlpe '}{$_=$.' file # Count the number of lines.
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 17 Jun 1999 01:19:24 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: simple quesiotn about array
Message-Id: <slrn7mh4rb.ejb.abigail@alexandra.delanet.com>
sydney qiu (sydney@netwave.ca) wrote on MMCXVI September MCMXCIII in
<URL:news:37684D0C.1806D0F0@netwave.ca>:
<> Hi, I am a beginner of perl. I basiclly teach myself from
That's fine. You do know that beginners buy the drinks, don't you?
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 09:15:31 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: What is functional difference between .pm and .pl?
Message-Id: <3768b91f.597309@news.skynet.be>
Jonathan Stowe wrote:
>> What I don't understand, is why "import" is in lower case. Probably old
>> age, but as far I I understand, any user code that is automatically
>> invoked by perl should be all uppercase. That's the convention, anyway.
>>
>
>But import() is in the perlfunc manpage and all those upper case ones
>arent - of course that isnt the reason but implies a different status
>for the function ...
Oh yeah.
import There is no builtin `import()' function. It is just an
ordinary method (subroutine) defined (or inherited) by
modules that wish to export names to another module.
Frankly, I don't see the difference with AUTOLOAD (see perlsub), or the
user defined subs to be used with tie() (see perltie), which are all
upper case only.
If, however, there is an `AUTOLOAD' subroutine defined
in the package or packages that were searched for the original
subroutine, then that `AUTOLOAD' subroutine is called...
perlsub:
A function in all capitals is a loosely-held convention
meaning it will be called indirectly by the run-time system
itself. Functions that do special, pre-defined things are
`BEGIN', `END', `AUTOLOAD', and `DESTROY'--plus all the
functions mentioned in the perltie manpage. The 5.005 release
adds `INIT' to this list.
In short: I think "IMPORT" would have made more sense than "import".
Bart.
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 6029
**************************************