[9557] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3149 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jul 14 11:28:02 1998

Date: Tue, 14 Jul 98 06:02:29 -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           Tue, 14 Jul 1998     Volume: 8 Number: 3149

Today's topics:
        .pm <sschng6@ie.cuhk.edu.hk>
        [Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
    Re: arrays and pattern matching (Tad McClellan)
    Re: Arrays <r11354@email.sps.mot.com>
        AWK Interpreter <irisbeau@wolsi.com>
        Chomp() on win32 and unix perl <scp@cadcentre.co.uk>
    Re: Chomp() on win32 and unix perl (Jeffrey R. Drumm)
    Re: Chomp() on win32 and unix perl <jdf@pobox.com>
    Re: Chomp() on win32 and unix perl <scp@cadcentre.co.uk>
    Re: databases and the such <webmaster@acidhouse.com>
    Re: Forcing DOS window to stay open scott@softbase.com
    Re: Forcing DOS window to stay open <quednauf@nortel.co.uk>
    Re: Forcing DOS window to stay open <webmaster@acidhouse.com>
    Re: Guidance.. <quednauf@nortel.co.uk>
        How to control the number of the child process <sun@cnnic.net.cn>
        Perl embedding question - embedding code which calls dy (Des Herriott)
    Re: perl IDE and compiler scott@softbase.com
        perl-binaries for VMS wanted thomasvolkmar@my-dejanews.com
    Re: portability of -s <qdtcall@esb.ericsson.se>
    Re: portability of -s (Gabor)
    Re: portability of -s <quednauf@nortel.co.uk>
    Re: portability of -s <qdtcall@esb.ericsson.se>
    Re: Putting CPAN on a CD: good or not good? (Gabor)
    Re: Recommend me Perl! scott@softbase.com
    Re: Recommend me Perl! (Gabor)
    Re: Recommend me Perl! (Gabor)
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Tue, 14 Jul 1998 17:15:37 +0800
From: Susan Cheung <sschng6@ie.cuhk.edu.hk>
Subject: .pm
Message-Id: <Pine.SOL.3.95.980714171304.12629A-100000@iesun31>

Dear all,

I'm now try to write a programe using .pm, however, the following errors
found.

How can I know if the perl version in my system have .pm? and how to use
it?
==============================================
Can't locate db_File.pm in @INC (@INC contains:
/usr/local/lib/perl5/sun4-solari
s/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris
/usr/
local/lib/perl5/site_perl /usr/local/lib/perl5/sun4-solaris .) at
dbadd.pl.cgi l
ine 3.
BEGIN failed--compilation aborted at dbadd.pl.cgi line 3.
=============================================================

Yours,
Susan

                          =^. .^=
--------------------------O--v--O---------------
- Name    : Cheung So Shan                     -
- e-mail  : susancheung@usa.net                -
- URL     : http://susan.home.ml.org           -
------------------------------------------------



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

Date: Tue, 14 Jul 1998 10:24:01 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage900411841.22386@news.teleport.com>

Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 18 May 1998

[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Spring of
1997; of course, ongoing updates are made as needed. ]

For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).

    http://cpan.perl.org/doc/FAQs/

Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.

    perldoc perlfaq
    man perlfaq

If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.

If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.

    http://cpan.perl.org/
    http://www.perl.com/CPAN/
    http://cpan.perl.org/doc/FAQs/FAQ/html/perlfaq.html
    http://www.perl.com/CPAN/doc/FAQs/FAQ/html/perlfaq.html

You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)

    California     ftp://ftp.cdrom.com/pub/perl/CPAN/
    Texas          ftp://ftp.metronet.com/pub/perl/
    South Africa   ftp://ftp.is.co.za/programming/perl/CPAN/
    Japan          ftp://ftp.dti.ad.jp/pub/lang/CPAN/
    Australia      ftp://cpan.topend.com.au/pub/CPAN/
    Netherlands    ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
    Switzerland    ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
    Chile          ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/

If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:

    setdir usenet-by-group/news.announce.newusers
    send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.

Have fun with Perl!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/


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

Date: Mon, 13 Jul 1998 23:53:06 -0500
From: tadmc@flash.net (Tad McClellan)
Subject: Re: arrays and pattern matching
Message-Id: <i7oeo6.fmb.ln@localhost>

Naomi Wyman (nwyman@mda.ca) wrote:
: I am trying to match a pattern based on values in an array, which are


   perlfaq, part 6?

   "How do I efficiently match many regular expressions at once?"


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: Tue, 14 Jul 1998 11:21:52 +0100
From: Paul Keenan <r11354@email.sps.mot.com>
Subject: Re: Arrays
Message-Id: <35AB3140.42ADBF7F@email.sps.mot.com>

Hi,

The most serious error seems to be that you don't increment your
loop variable $i.

Replace
    for (...; ...; $i)
with
    for (..., ..., $i+-+-)

Learning to use the perl debugger will make these error jump
out at you, instead of having to post to the newsgroup for a
much slower response.  HTH.

Paul


The Wildman wrote:
> 
> I'm having a little trouble with arrays. Okay, a LOT. I don't understand how
> they work in perl at all. I'm trying to do something like this:
> for ($i = 0;$i < MAX;$i) {
>     $array[$i] = $i;
> }
> 
> But of course it isn't working. You can see what my coding background is,
> too, I suppose. :D
> 
> --
> The Wildman - wildman at microserve dot net
> Do NOT reply to this post! All mail sent to the From/Reply-To will be
> considered spam, and handled appropriately.
> Fight spam - http://www.cauce.org/
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS/MU d- s: a- C UL P L !E W-- N o !K w--- !O !M V-- PS PE Y PGP?
> t 5 X R tv b DI D G e h---- r+++8- y+++8-
> ------END GEEK CODE BLOCK------

-- 
Regards,                                  
Paul


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

Date: Tue, 14 Jul 1998 05:44:41 -0700
From: "David Reynolds" <irisbeau@wolsi.com>
Subject: AWK Interpreter
Message-Id: <6ofg46$vno$1@news.wolsi.com>

I am learning Perl and have have programmed a great deal in AWK.  I was
looking for a perl program that converted AWK code to Perl.  I would like to
see the differences between the two.


David




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

Date: Tue, 14 Jul 1998 10:36:30 +0100
From: "S.Plant" <scp@cadcentre.co.uk>
Subject: Chomp() on win32 and unix perl
Message-Id: <6of8p1$cu2$1@flex.london.pipex.net>

Hi all,
   I've just come across an interesting problem which I personally think
shouldn't
exist.

The problem : On Win32 perl (5.004_69) a "chomp" recogises both the
windows nt and unix line endings (\r\n for NT and \n for unix), so all is ok
when converting scripts.

But, when reading in an NT file on UNIX (5.004_01), a "chomp" only strips
off the "\n" and leaves
the "\r" in the file, thus creating problems when diffing etc.

Surely the chomp command on unix perl should recognise the NT line endings
in
the same way the Win32 Perl recognises both. ??

Just a thought.
Rgds
Si





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

Date: Tue, 14 Jul 1998 11:15:32 GMT
From: drummj@mail.mmc.org (Jeffrey R. Drumm)
Subject: Re: Chomp() on win32 and unix perl
Message-Id: <35ab3a9f.604387282@news.mmc.org>

[ posted to comp.lang.perl.misc and a courtesy copy was mailed to the cited
author ]

On Tue, 14 Jul 1998 10:36:30 +0100, "S.Plant" <scp@cadcentre.co.uk> wrote:

>Hi all,
>   I've just come across an interesting problem which I personally think
>shouldn't
>exist.
>
>The problem : On Win32 perl (5.004_69) a "chomp" recogises both the
>windows nt and unix line endings (\r\n for NT and \n for unix), so all is ok
>when converting scripts.
>
>But, when reading in an NT file on UNIX (5.004_01), a "chomp" only strips
>off the "\n" and leaves
>the "\r" in the file, thus creating problems when diffing etc.
>
>Surely the chomp command on unix perl should recognise the NT line endings
>in
>the same way the Win32 Perl recognises both. ??

>Just a thought.
>Rgds
>Si

Ugh. Why would anyone want that? I would be extremely unhappy if Perl chomped
off more than I asked it to . . .

On Unix, the line terminator is a single character. chomp() removes the line
terminator. It is simply fortuitous for you that it still treats a single
newline as a line terminator in the Win32 world. Any embedded carriage returns
in files created on *nix systems are probably intentional, and it would
certainly cause problems to whack 'em off should they be located adjacent to
newlines.

-- 
                               Jeffrey R. Drumm, Systems Integration Specialist
                       Maine Medical Center - Medical Information Systems Group
                                                            drummj@mail.mmc.org
"Broken? Hell no! Uniquely implemented!" - me


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

Date: 14 Jul 1998 07:41:35 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: "S.Plant" <scp@cadcentre.co.uk>
Subject: Re: Chomp() on win32 and unix perl
Message-Id: <vhp0d2ps.fsf@mailhost.panix.com>

"S.Plant" <scp@cadcentre.co.uk> writes:

> The problem : On Win32 perl (5.004_69) a "chomp" recogises both the
                               ^^^^^^^^
That is an experimental and unsupported version.

> But, when reading in an NT file on UNIX (5.004_01), a "chomp" only strips
                                           ^^^^^^^^
Whereas that's an old and unsupported version.

> Surely the chomp command on unix perl should recognise the NT line
> endings in the same way the Win32 Perl recognises both. ??

 chomp() is documented to remove $/ from the end of a string.  Here's
a hint:

   #!//c/perl/bin/perl -w
   $/ = "!\n";
   chomp(my @foo = <DATA>);
   print map "<$_>\n", @foo;
   __DATA__
   mr magoo!
   donald trump!
   arthur pfeffer!

 Also: use ASCII mode when transferring your file between platforms;
this will automagically translate end-of-line sequences between
platforms.

 Finally, you may configure your text editor on the NT box to save as
Unix.  HTH.
-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf/


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

Date: Tue, 14 Jul 1998 13:09:51 +0100
From: "S.Plant" <scp@cadcentre.co.uk>
Subject: Re: Chomp() on win32 and unix perl
Message-Id: <6ofhoj$k9m$1@flex.london.pipex.net>


Jonathan Feinberg wrote in message ...
>"S.Plant" <scp@cadcentre.co.uk> writes:
>> Surely the chomp command on unix perl should recognise the NT line
>> endings in the same way the Win32 Perl recognises both. ??
>
> chomp() is documented to remove $/ from the end of a string.  Here's
>a hint:



Aha, thats usefull,  I can use that bit. (thinks . o 0 (Hmm must read that
blue book
more often)..)

> Also: use ASCII mode when transferring your file between platforms;
>this will automagically translate end-of-line sequences between
>platforms.


Who said I was using FTP ? As it happens these files are stored on a unix
server disk running samba.

> Finally, you may configure your text editor on the NT box to save as
>Unix.  HTH.


Fine if it was just me, but we're talking about a big development team
comparing the results
of NT and UNIX test results.

(btw, I use PFE on NT, so its not a problem, the problem is the developers
who insist on
using devstudio etc....)

Rgds
Si





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

Date: Tue, 14 Jul 1998 13:48:38 +0200
From: Nico van Leeuwen <webmaster@acidhouse.com>
Subject: Re: databases and the such
Message-Id: <35AB4596.977FABEF@acidhouse.com>



Chris wrote:

> I'm a TA and have to record my students marks in a database on Unix
> and the faculty suggests that I use Perl:  Can anyone send me in the
> right direction to do this.  I know very little about Perl!
>
> Thank-you

  As I have just started with perl I though I would give you a hand. The
first question is do you have any experience with programming? If you do
perl should be quite pleasant and easy to get the hang of, especially
for what you want to do. If you have no programming experience you will
probably have a harder time. The best thing to do in both situations is
get a nice Perl book that will explain the basiscs, you will find that
the information on the web probably won't do the trick! Perl is very
much suitable for your objective.

Greets,

Nico.



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

Date: 14 Jul 1998 11:44:16 GMT
From: scott@softbase.com
Subject: Re: Forcing DOS window to stay open
Message-Id: <6ofgag$kvn$1@mainsrv.main.nc.us>

willwebber@my-dejanews.com wrote:
> Hello all. I just recently put PERL on my home system(Win95) to work on some
> things locally before uploading to the server. And, I seem to have a problem
> keeping the DOS window open that the PERL runs in. I tried throwing a line of
> code in that waits for you to hit a key before it quits the program (waits
> for a STDIN entry). But, this method only seems to work if the code runs okay
> without breaking. If the code breaks, the window shows the errors (for a
> split second) then closes. Any suggestions on how to force it to stay open
> regardless of the events of compile and run?  Any suggestions would be
> great--

The main suggestion is to try something that works: using a command
prompt window. Running command line programs from Explorer is bad for
the reason you've already noticed: a console window flashes on the
screen and you have no idea what is going on.  If you open up a
permanent command prompt first, it won't close and you can see what's
going on. Perl is so command line oriented that it's tough to use it
from a GUI.

If you have a lot of output, so much that it is more than a single
command prompt screen, you'll likely want to use a text editor that
captures output. M-x shell in Win32 Emacs is the best one I've seen.
The free Programmer's File Editor also has a way to run commands and
capture the output into a buffer. You'll almost certainly want
an editor that lets you have multiple buffers open at once, like
Emacs, so you can edit and run in the same editor.

Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more. 


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

Date: Tue, 14 Jul 1998 13:27:21 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: Forcing DOS window to stay open
Message-Id: <35AB4EA9.C9F95D95@nortel.co.uk>

willwebber@my-dejanews.com wrote:
> 
> Hello all. I just recently put PERL on my home system(Win95) to work on some
> things locally before uploading to the server. And, I seem to have a problem
> keeping the DOS window open that the PERL runs in. I tried throwing a line of
> code in that waits for you to hit a key before it quits the program (waits
> for a STDIN entry). But, this method only seems to work if the code runs okay
> without breaking. If the code breaks, the window shows the errors (for a
> split second) then closes. Any suggestions on how to force it to stay open
> regardless of the events of compile and run?  Any suggestions would be
> great--
> 

Alternatively, I believe that on Win95 you can do the following: I can't
guarantee, but I remember doing something similar for Fortran. I'll
check this evening:

Make a .bat file in which you write something like that:

@echo off
c:\perl\perl.exe %1

Associate Perl with that Batfile. Its gotta look something like this :
'c:\mybats\perl.bat %1'

Now Right click on the batfile, and I think that you should get all
sorts of properties thrown at you. If I remember correctly you can
choose some kind of 'Don't close window after finishing'.

Hope that helps.

-- 
____________________________________________________________
Frank Quednau               
http://www.surrey.ac.uk/~me51fq
________________________________________________


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

Date: Tue, 14 Jul 1998 14:37:27 +0200
From: Nico van Leeuwen <webmaster@acidhouse.com>
Subject: Re: Forcing DOS window to stay open
Message-Id: <35AB5106.B50CE9D4@acidhouse.com>

willwebber@my-dejanews.com wrote:

> Hello all. I just recently put PERL on my home system(Win95) to work on some
> things locally before uploading to the server. And, I seem to have a problem
> keeping the DOS window open that the PERL runs in. I tried throwing a line of
> code in that waits for you to hit a key before it quits the program (waits
> for a STDIN entry). But, this method only seems to work if the code runs okay
> without breaking. If the code breaks, the window shows the errors (for a
> split second) then closes. Any suggestions on how to force it to stay open
> regardless of the events of compile and run?  Any suggestions would be
> great--
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


There is an option box in the dos window where you can disable it from
closing..... you can use that. Look around a little.

Nico.



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

Date: Tue, 14 Jul 1998 11:31:37 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: Guidance..
Message-Id: <35AB3389.EB96DD97@nortel.co.uk>

J. Pratt wrote:
> 
> The script is an online entry editor..  With it, you can view entries
> (which simply displays the text file), or add entries (each entry is
> just a line of text).  However, I am wanting to implement a delete
> feature.  This is not as easy as I had hoped it would be, though.  I
> figured the best layout to do this would be to put a checkbox next to
> each entry (each line).  To delete an entry, you would simply check the
> checkbox next to the corresponing entry.  You would then submit,
> confirm  (I'm clear on how to do the confirming part), and it would
> delete the appropriate line from the text file.

Suppose you have the ouput already on the page -- [untested]

$i = 0;
while (<FILE>) {
  print "$_",checkbox(-name=>"$i"),"<br>";
  $i++;
}

I would do something like that, J *giggle*: -- [untested]

@file = <FILE>;

for ($count = @file; $count >= 0; $count--) {
  splice (@file, $count, 1) if param("$count");
}

write array back to file;

Alternatively I have used textareas in my link manager - Print the
contents of the file into the textarea with the -default => hash key,
and then just write the contents of the textarea back.

> Thanks in advance! .. And don't worry, sooner or later I'll be a quite
> skillful programmer.  :)

Do you really want that ? Rumours say that you can't be a skillful
programmer without being addicted to some Class A drug that keeps you
awake and burning :)

-- 
____________________________________________________________
Frank Quednau               
http://www.surrey.ac.uk/~me51fq
________________________________________________


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

Date: Tue, 14 Jul 1998 18:46:35 +0800
From: Sun Guonian <sun@cnnic.net.cn>
Subject: How to control the number of the child process
Message-Id: <35AB370B.54E6DF39@cnnic.net.cn>

I set a server, It can fork up to $MAX, for example, 5,  child
processes,
In the parent process, how to find if a child process is ended and to
produce
a new child process ?
I have tried the $SIG{CHLD}, but it can capture the signal SIGCHLD only
once.

Thanks in advanced !

Sun Guonian
(China Internet Network Information Center,CNNIC)
http://www.cnnic.net.cn/




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

Date: 14 Jul 1998 10:12:08 GMT
From: des@corp.netcom.net.uk (Des Herriott)
Subject: Perl embedding question - embedding code which calls dyn. modules?
Message-Id: <6ofato$8js$1@taliesin.netcom.net.uk>

Hi, I've embedded a Perl interpreter in some C code I've written, which
is successful so far.  However, I now want to dynamically load a module
from the Perl script I run, and there's one thing I'm not to sure on:

I've read the docs (in particular perlembed & Advanced Perl Programming,
chapter 19), which describe what I need to do in the way of calling an
xs_init() routine.  So, what I've done so far:

  $ perl -MExtUtils::Embed -e xsinit -- -o xsinit.c -std DBI
  $ gcc -c xsinit.c `perl -MExtUtils::Embed -e ccopts`

So far so good.  However when I try to link:

  $ gcc -o myapp myapp.o xsinit.o `perl -MExtUtils::Embed -e ldopts`

I get:

  [snip]
  Undefined                       first referenced
  symbol                             in file
  boot_DBI                            xsinit.o

Now, boot_DBI is defined in <lib>/site_perl/sun4-solaris/auto/DBI/DBI.so.
What do I need to do to prevent a link error?  Have I miscompiled Perl?

The output of "perl -MExtUtils::Embed -e ccopts" is (pardon the long
line):

  -L/usr/local/lib /usr/local/packages/perl-5.004/lib/sun4-solaris/5.00404/auto/DynaLoader/DynaLoader.a -L/usr/local/packages/perl-5.004/lib/sun4-solaris/5.00404/CORE -lperl -lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt

This is perl5.004_04 on Solaris 2.6.  Any advice appreciated.

-- 
Des Herriott
des@corp.netcom.net.uk


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

Date: 14 Jul 1998 11:45:55 GMT
From: scott@softbase.com
Subject: Re: perl IDE and compiler
Message-Id: <6ofgdj$kvn$2@mainsrv.main.nc.us>

> Is there any Perl compiler for win32/unix?

Perl is its own compiler. (How many languages can say THAT?) Add Emacs
and you're in business. The great thing is, they work both on Win32
and UNIX.

Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more. 


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

Date: Tue, 14 Jul 1998 09:13:19 GMT
From: thomasvolkmar@my-dejanews.com
Subject: perl-binaries for VMS wanted
Message-Id: <6of7fe$hje$1@nnrp1.dejanews.com>

Hello,

does anybody have precompiled versions of perl 5.xx that run on the following
VMS-Versions:

AXP/VMS V6.1-1H2
VAX/VMS V5.5

Since we do not have a C-Compiler nor there are no efforts to upgrade VMS in
our company I will be very grateful, if somebody has binaries for at least the
AXP-Version mentioned above.

Thanks,
Thomas

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: 14 Jul 1998 12:17:38 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: portability of -s
Message-Id: <isk95glosc.fsf@godzilla.kiere.ericsson.se>

Yeoh Yiu <squid@panix.com> writes:

> Does the -s test for file size return the same number
> for the same file if I copy this file to various file systems ?

I would suppose so, at least as long asnone of the filesystems were
NFS or CIFS.

> p85 of the blue camel doesn't say size is measured in bytes but I
> assume it to be so.

It doesn't seem to be documented at all what unit the size is supposed 
to be. Some experimentation shows that it seems to be bytes for all
systems I have easy access to, but I wouldn't like to rely on that
across platforms. It'd be interesting to hear what sort of thing it
returns on VMS or other systems with a different file-paradigm.
-- 
                    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: 14 Jul 1998 12:13:07 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: portability of -s
Message-Id: <slrn6qmiuf.6n.gabor@guava.vmunix.com>

In comp.lang.perl.misc, Yeoh Yiu <squid@panix.com> wrote :
# Does the -s test for file size return the same number
# for the same file if I copy this file to various file systems ?
# 
# p85 of the blue camel doesn't say size is measured in bytes
# but I assume it to be so.

What else would it measure it in?  Kilometres?


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

Date: Tue, 14 Jul 1998 13:44:12 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: portability of -s
Message-Id: <35AB529C.2D84CFB5@nortel.co.uk>

Gabor wrote:
> 
> # p85 of the blue camel doesn't say size is measured in bytes
> # but I assume it to be so.
> 
> What else would it measure it in?  Kilometres?

Oh no, Gigaquads.

I wonder what kind of Perl interpreter you could run on the USS
Enterprise (1701-D) Computer core. 'Unable to comply: $!' would probably
be wiped out as an error message!


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

Date: 14 Jul 1998 14:57:32 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: portability of -s
Message-Id: <isyatwk2tf.fsf@godzilla.kiere.ericsson.se>

gabor@vmunix.com (Gabor) writes:

> What else would it measure it in?  Kilometres?

Bits. Logical records. Disk blocks. Just to name the ones I could
think of in less time than it took to type the words.
-- 
                    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: 14 Jul 1998 12:22:32 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: Putting CPAN on a CD: good or not good?
Message-Id: <slrn6qmjg3.6n.gabor@guava.vmunix.com>

In comp.lang.perl.misc, birgitt@my-dejanews.com <birgitt@my-dejanews.com> wrote :
# In article <fl_aggie-1207981425490001@aggie.coaps.fsu.edu>,
#   fl_aggie@thepentagon.com (I R A Aggie) wrote:
# > In article <6oa77g$p1a$1@nnrp1.dejanews.com>, birgitt@my-dejanews.com wrote:
# >
# > + The attached CD-ROM to the magazin is something done often in Germany,
# > + apparently because online time to download things directly is
# > + expensive. That is my assumption and I like to be corrected if
# > + I am wrong.
# >
# > My understanding of the telecom system in Germany is this: you pay for
# > every call you make. There's no such thing as "free local calling".
# >
# > James
# >
# 
# Right, you pay around 8 cents for every 48 seconds of a local call during
# business hours, for every 65 seconds morning and evening hours, for
# every 96 seconds during nightime hours.

Wow, they sure milk you for it.


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

Date: 14 Jul 1998 11:47:53 GMT
From: scott@softbase.com
Subject: Re: Recommend me Perl!
Message-Id: <6ofgh9$kvn$3@mainsrv.main.nc.us>

c960901@student.dtu.dk wrote:
> Hello there.

> I've never written a line of Perl, but I'm going to in the very near future.
> I need someone to recommend me -the best- Perl book available. 

I like the new Perl From The Ground Up book -- you might want to check
that out. It's so new I haven't actually reviewed it yet, but am
impressed so far. (All those years of writing "Perl!" on the 
reader response card for Osborne books in the "what other languages
would you like us to cover" finally amounted to something...)

> What can Perl do? 

What can't it do?

> I've seen only little Perl code. Can it scan a directory for subdirs and
> files and return the names in a string array? Cause that's what I really
> need.

Sure, that's simple.

Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more. 


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

Date: 14 Jul 1998 12:18:23 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: Recommend me Perl!
Message-Id: <slrn6qmj8b.6n.gabor@guava.vmunix.com>

In comp.lang.perl.misc, Zachary Kessin <zkessin@lhr-sys.dhl.com> wrote :
# 
# rjk@coos.dartmouth.edu (Ronald J Kimball) writes:
# 
# > Tom Christiansen <tchrist@mox.perl.com> wrote:
# > 
# > >  [courtesy cc of this posting sent to cited author via email]
# > > 
# > > In comp.lang.perl.misc, rjk@coos.dartmouth.edu (Ronald J Kimball) writes:
# > > :Tom Christiansen <tchrist@mox.perl.com> wrote:
# > > :> _Programming Perl_ (Wall, Christiansen, and Schwartz)
# > > :
# > > :You forgot to mention Stephen Potter.
# > > 
# > > I did?
# > 
# > I believe so.
# > 
# > Programming Perl, Second Edition
# > by Larry Wall, Tom Christiansen, and Randal L. Schwartz, with Stephen
# > Potter
# 
# Stephen Potter's name is not on the cover or spine, it is on the
# inside title page. At least on my cammel book here. (Yes its on my
# desk at all times)

Oh, yeah.  I've never even noticed that.  Interesting.


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

Date: 14 Jul 1998 12:16:33 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: Recommend me Perl!
Message-Id: <slrn6qmj4p.6n.gabor@guava.vmunix.com>

In comp.lang.perl.misc, Tom Christiansen <tchrist@mox.perl.com> wrote :
#  [courtesy cc of this posting sent to cited author via email]
# 
# In comp.lang.perl.misc, 
#     cberry@cinenet.net (Craig Berry) writes:
# :_Learning Perl_  (Schwartz and Wall)
# :_Programming Perl_ (Schwartz, Wall, and Christiansen)
# 
# Man, it gets worse every day. :-(
# 
# _Programming Perl_ (Wall, Christiansen, and Schwartz)
# _Learning Perl_    (Schwartz and Christiansen; foreword by Wall)

Just curious, but why does it bother you so much.  Once you even sent me
email correcting me because I had you last for Programming Perl.  As if
that makes any difference.


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

Date: 12 Jul 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 Mar 98)
Message-Id: <null>


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


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

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