[7611] in Perl-Users-Digest
Perl-Users Digest, Issue: 1237 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Oct 28 06:07:42 1997
Date: Tue, 28 Oct 97 03:00:54 -0800
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, 28 Oct 1997 Volume: 8 Number: 1237
Today's topics:
Re: Agrep for perl ? (Tad McClellan)
Re: An Interesting CGI Problem ... <bjorn@realitynet.com>
Better ways to... (Shetal N. Patel)
Re: Better ways to... (brian d foy)
Re: Better ways to... (Tom Grydeland)
Continuations in perl? <ajh@rtk.com>
Debugging all day, and still can't figureit out - pleas warren.milburn@cdtec.co.uk
Re: Displaying X-based applications? <Michael.Salmon@uab.ericsson.se>
Re: do function prototypes work for object methods? (Ian Morgan)
fork() makes me wait (?) <peter@preview.org>
Getting Autonumber ID after insert <patricka@cs.kun.nl>
Re: help with lists within objects? (Charles DeRykus)
Help with this error? <skooky@primenet.com>
Re: How to send keystrokes from Perl to Win95 app <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: Is there/will there be a decent way to do constants <rjk@coos.dartmouth.edu>
Perl 5.004 and HP-UX <ruin@lseet.univ-tln.fr>
Re: perl newbie needs help <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: perl newbie question <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: Perl Suffix (Was: Can perl be maken to Compiler ins <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: Problem with a perl porg/script (Tad McClellan)
Re: Problems compiling Perl5.004_u1 on Solaris2.6. (Casper H.S. Dik - Network Security Engineer)
Re: Problems compiling Perl5.004_u1 on Solaris2.6. <qdtcall@esb.ericsson.se>
Re: Problems with $ARGV <rjk@coos.dartmouth.edu>
Re: Regexp optimizing <rjk@coos.dartmouth.edu>
Russian PERL mailing list <afan@elnet.msk.ru>
Re: sorting on primary and secondary key <qdtcall@esb.ericsson.se>
Storage size computation <s_rsshaffer@mail.clairon.edu>
Re: To get perl running on my system... <bjapan@cyberis.net>
Re: Urgent Perl question <qdtcall@esb.ericsson.se>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 27 Oct 1997 17:49:26 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Agrep for perl ?
Message-Id: <6a9336.icq.ln@localhost>
Petr Matousek (matousek@sunman.cern.ch) wrote:
: I am looking
Where have you looked?
It took me about 8 seconds of looking (word search for 'approx')...
: for perl module/package which contains agrep (grep for
: approximate matching). Has anybody heard about it?
Has anybody read the Perl FAQ, part 6?
"How can I do approximate matching?"
--
Tad McClellan SGML Consulting
tadmc@flash.net Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 27 Oct 1997 22:40:27 -0800
From: "Bjorn K. Lindstrom" <bjorn@realitynet.com>
Subject: Re: An Interesting CGI Problem ...
Message-Id: <345588DB.C010A5F4@realitynet.com>
My thanks and gratitude for everyones helpful messages. I just wanted
to let you know that with the help and encouragement from everyone
across the world, my website is now working perfectly.
The problem had two parts:
1) The URL's had to be encoded.
2) When I encoded, I couldn't decode, because the library supplied by my
ISP was already doing "some" decoding.
The solution proved to be just converting the double quote characters to
something unique.
After that, it worked perfectly.
Thanks again for your help!
--
Bjorn Lindstrom
bjorn@realitynet.com
http://www.realitynet.com/bjorn
http://www.realitynet.com/bjorn/home.html (non-frames version)
------------------------------
Date: Tue, 28 Oct 1997 06:40:50 GMT
From: snpatel@mindspring.com (Shetal N. Patel)
Subject: Better ways to...
Message-Id: <3455878a.129787@news.mindspring.com>
I'm looking for other ways to add colons to a MAC address.
Here's how I'm doing this:
$fmac="123456789abc";
@fmac=($fmac=~/(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)/);
$fmac=join(":",@fmac);
print "$fmac\n";
The print gives me "12:34:45:78:9a:bc" (unless I missed some syntax
above). Any suggestions on how I could do this differently (more
efficiently, faster, simpler, etc).
Thanks for your suggestions.
Shetal
--
____________________________________________________________________
| |
| Shetal N. Patel snpatel@mindspring.com |
| Don't wait for someone else to make |
| your life terrific. That's your job. |
|____________________________________________________________________|
<Insert Standard Disclaimer Here>
------------------------------
Date: Tue, 28 Oct 1997 05:32:49 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Better ways to...
Message-Id: <comdog-ya02408000R2810970532490001@news.panix.com>
In article <3455878a.129787@news.mindspring.com>, snpatel@mindspring.com wrote:
>I'm looking for other ways to add colons to a MAC address.
>
>Here's how I'm doing this:
>$fmac="123456789abc";
>@fmac=($fmac=~/(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)/);
>$fmac=join(":",@fmac);
>print "$fmac\n";
this is the same problem as adding commas to a number, which is
answered in the FAQ. Jeffery Freidl also discusses the problem
at some length in "Mastering Regular Expressions" [1]
good luck :)
[1] see pages 229 and 292
Mastering Regular Expression
Jeffrey Freidl
ISBN 1-56592-257-3
<URL:http://www.oreilly.com>
--
brian d foy <comdog@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: 28 Oct 1997 09:57:40 GMT
From: Tom.Grydeland@phys.uit.no (Tom Grydeland)
Subject: Re: Better ways to...
Message-Id: <slrn65bdok.du5.Tom.Grydeland@mitra.phys.uit.no>
On Tue, 28 Oct 1997 05:32:49 -0400,
brian d foy <comdog@computerdog.com> wrote:
> In article <3455878a.129787@news.mindspring.com>,
> snpatel@mindspring.com wrote:
> >I'm looking for other ways to add colons to a MAC address.
> this is the same problem as adding commas to a number, which is
> answered in the FAQ.
Not really. The MAC address is fixed length (or ought to be,
considering the solution snpatel has come up with already), whereas the
comma problem is tricky because it is a variable length problem.
Try:
$fmac =~ s/(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)(\S\S)/$1:$2:$3:$4:$5:$6/;
> brian d foy <comdog@computerdog.com>
--
//Tom Grydeland <Tom.Grydeland@phys.uit.no>
------------------------------
Date: 28 Oct 1997 05:03:58 GMT
From: "Aaron Harsh" <ajh@rtk.com>
Subject: Continuations in perl?
Message-Id: <878015038.233951@ridge.spiritone.com>
Does Perl support Scheme style continuations? I can't find any information
on it, but I find it hard to believe that there's a flow-of-control
construct that can't be kludged together in Perl.
ajh@rtk.com
------------------------------
Date: Tue, 28 Oct 1997 09:40:46 GMT
From: warren.milburn@cdtec.co.uk
Subject: Debugging all day, and still can't figureit out - please help
Message-Id: <3455b28c.2971430@nntp.onyx.net>
This line is from a known good source (CGI Programming on the WWW,
O'Reilly), which checks fine using perl -wc filename.pl :
($student, $YOG, $address) = split (/\0/, $fields);
Whereas this line (below), which has been adapted from the above gives
the error "Backslash found where operator expected at people.pl line
174, near "= split (/\" .... (Missing Operator before \?) .... Syntax
error at people line 174, near "= split (/\" .... Execution of
people.pl aborted due to compilation errors" :
($staff_no, $forename, $surname, $job_title, $company, $department) =
split (/\0/, $fields);
Any suggestions you might have would be gratefully received.
------------------------------
Date: Tue, 28 Oct 1997 08:51:30 +0100
From: Michael Salmon <Michael.Salmon@uab.ericsson.se>
Subject: Re: Displaying X-based applications?
Message-Id: <34559981.F05CD662@uab.ericsson.se>
Peter Sakalaukus wrote:
>
> I have created a user interface using Apache/Perl/Netscape. One of the
> user selections subsequently pops up an xterm, (which is running on the
> same machine as the server). This works fine if I am using the browser
> interface on the same machine that the Apache server is running on. The
> problem arises when I access the web pages from another machine. I am
> unable to pop up the xterm or any other x/motif program.
>
> Does anyone know wether it is a server/browser/perl problem? Is there
> a fix?
Basically, this isn't what you wan't to do, remember that you do all
sorts of things on your X terminal, including typing passwords. There
are 2 fairly easy ways to handle this. The first is to create a new mime
type that starts the application on your terminal. Secondly, you can use
a generic plugin (sorry but I can't remember the name right now) that
enables you to start an X appliction in your netscape.
--
This space intentionally left non-blank.
------------------------------
Date: Mon, 27 Oct 1997 22:12:24 -0600
From: weiqi@pipeline.com (Ian Morgan)
Subject: Re: do function prototypes work for object methods?
Message-Id: <weiqi-2710972212250001@ip39.austin8.tx.pub-ip.psi.net>
>sub foreach($&){
> my $self = shift;
> my $block = shift;
> foreach (@{$self->{objs}}) {
Perl is a great language.
But, fooling with something as fundamental
as "for" loop definition keyword seems foolish at best,
when trying to figure what works.
Try again using "myForEach" rather than "foreach".
Let me know how it comes out.
--
Gala Weiqi -- Ian Morgan of Zapata Texas
------------------------------
Date: Tue, 28 Oct 1997 02:41:22 -0800
From: "Peter Tiemann" <peter@preview.org>
Subject: fork() makes me wait (?)
Message-Id: <634faq$9o4$1@ha2.rdc1.sdca.home.com>
Q: How do I fork a process without waiting for the child?
I try to call a slow perl script from a HTML page. I do currently call the
script, and use fork() as shown below to create a child process. I have the
child process do the long-time taking work and expected to return directly
back to the HTML document. (The child process will not create output.)
But:
The HTML document does not appear before the child process has finished.
Why?
------------------------------
#!/usr/bin/perl
$pid = fork();
if ($pid)
{
# parent process
print "Content-type: text/html\n\n";
print "<html><BODY>Start-Stop</BODY></html>";
}
elsif (defined $pid)
{
# child process
# .. some slow stuff ..
}
--
greetings,
Peter Tiemann, peter@preview.org
------------------------------
Date: Tue, 28 Oct 1997 10:17:34 +0100
From: Patrick Atoon <patricka@cs.kun.nl>
Subject: Getting Autonumber ID after insert
Message-Id: <3455ADAE.8F6EA13B@gx.nl>
Hi there,
I'm writing a Perl script that is calling Access via the Win32::ODBC
package. The script inserts records into a database, but it needs to
know which autonumbered index each record received. Is this possible
without doing an extra SELECT to retrieve the highest value?
# mytable looks like "myId" (autonumber), "name" (text)
use Win32::ODBC;
$db = new Win32::ODBC("myDB");
$stmt = "INSERT INTO mytable (name) VALUES ('Gnu')";
$resultcode = $db->Sql($stmt);
All solutions are welcomed. Thank you in advance.
Greetings,
Patrick
------------------------------
Date: Tue, 28 Oct 1997 01:44:25 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: help with lists within objects?
Message-Id: <EIqnI1.83L@bcstec.ca.boeing.com>
In article <Pine.GSO.3.95.971027173049.27632A-100000@holyrood.ed.ac.uk>,
D L Warnett <dlw@holyrood.ed.ac.uk> wrote:
>
> Dear all,
>
> I'm not sure if i'm missing something obvious but i can't seem to create a
> list within an object and then get at the elements of that list.. I'm
> trying to do something like the following.
>
> within package Obj1....
>
> sub init {
> my $self = shift;
> $self->{'list'} = \(new Obj2, new Obj2, new Obj2);
> }
>
> sub get_info {
> my $self = shift;
> foreach $obj_ref (@{$self->{'directions'}}) {
> print $obj_ref->{'last'};
> }
> }
>
> ######
>
> Or something like this...
> The perldebugger within emacs tells me that @{$self->{'directions'}} is
> not an ARRAY reference..
>
The line: $self->{'list'} = \(new Obj2, new Obj2, new Obj2);
^ ^
discarded discarded
is effectively: $self->{'list'} = new Obj2; since there's a scalar
rather than a list context. This is why you get "...not an ARRAY
reference" which you see later.
You'd need to do something like this for example :
$self->{'list'} = [\(new Obj2 , new Obj2 , new Obj2 )];
or, maybe:
$self->{'list'} = [map { new Obj2 } 1..3 ];
HTH,
--
Charles DeRykus
------------------------------
Date: 27 Oct 1997 21:37:00 -0700
From: Henry Hwangbo <skooky@primenet.com>
Subject: Help with this error?
Message-Id: <633q5c$9c7@nntp02.primenet.com>
--
------------------------------
Date: Mon, 27 Oct 1997 20:20:18 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: How to send keystrokes from Perl to Win95 app
Message-Id: <633p6d$opb@bgtnsc01.worldnet.att.net>
This might be possible with some kind of OLE magic, but someone who knows
more OLE incantations than I do will have to point the way.
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Matthew H. Gerlach wrote in message ...
>In article <Pine.GSO.3.96.971027093557.15628K-100000@usertest.teleport.com>
Tom Phoenix <rootbeer@teleport.com> writes:
>>On 27 Oct 1997, L. Dwynn Lafleur wrote:
>>
>>> Is it possible to send keystrokes from a running Perl script to a Win95
>>> application that the script has opened? For example, from a Perl
>>> script, can I open Notepad and then issue a command in the script to
>>> insert a text string into the Notepad document?
>>
>>
>>If it can be done in any Win95 scripting language it can be done in Perl -
>>although the module to make it possible may not yet be written. Good luck!
>>
>I do this sort of thing all the time under UNIX with Comm.pl. Comm.pl
>will not run under win95, but the Expect extension to TCL is ported to
>winNT.
>
>Matthew
------------------------------
Date: Mon, 27 Oct 1997 23:10:20 -0500
From: Chipmunk <rjk@coos.dartmouth.edu>
Subject: Re: Is there/will there be a decent way to do constants in perl?
Message-Id: <345565AB.5A84@coos.dartmouth.edu>
Zenin wrote:
>
> Well, it does make much more sense in here-in statements then on
> liners:
>
> print <<"EndOfData";
> This is my report.
> It was created on @{[ scalar localtime (time) ]}
> blgh blgh blgh
> EndOfData
"${\ scalar localtime(time)}" works as well.
TMTOWTDI.
Chipmunk
------------------------------
Date: Tue, 28 Oct 1997 08:33:13 +0100
From: Yves RUIN <ruin@lseet.univ-tln.fr>
Subject: Perl 5.004 and HP-UX
Message-Id: <34559539.A55F4E6@lseet.univ-tln.fr>
Hi ,
I would like to use "poppass", a CGI script in Perl which
allows users to change their password using a www interface.
To do this, I need to install Perl 5.004 on a HP 9000/715
with HP-UX 9.07
The synopsis to do that is :
rm -f config.sh OK
sh Configure OK
make OK
make test not OK !
I get a strange message:
lib/io_sock........IO::Socket::INET: Bad hostname 'localhost'
....propagated at ./lib/io_sock.t line 55
and nothing more on the screen.
What should I do, I've tried to run TEST, it's the same thing
--
___________ __________________________________________________
| | LSEET/CNRS UTV BP 132 83957 LA GARDE Cedex |
| Yves RUIN | http://lseet.univ-tln.fr/~ruin |
| | Tel: 33 (0)4 94 14 24 55 Fax: 33 (0)4 94 14 24 17 |
----------- ---------------------------------------------------
------------------------------
Date: Mon, 27 Oct 1997 20:00:00 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: perl newbie needs help
Message-Id: <633o0d$iag@bgtnsc01.worldnet.att.net>
If you're using Windows, I recommend Notepad.
Yep, you're right, that was a joke.
I actually recommend Programmers File Editor (PFE). It's good, it's free, it
lets you open multiple windows, it can show you file numbers or not (great
for tracking down those pesky errors Perl dies with), it's free, it does
macros and templates and DOS shells and did I mention it was free? Check it
out at http://www.lancs.ac.uk/people/cpaap/pfe
If you're on a Mac, Alpha is outstanding. And if you're on Unix emacs has a
Perl mode.
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Andy Sutorius wrote in message <3455005F.A61F111D@solution4u.com>...
>I have looked at all the FAQ's I can possibly stand.
>
>I need to download a "freeware" editor so that I may write and compile
>and debug Perl. I have Perl 4 and 5 but nothing is making sense in how
>to get the program up and running.
>
>I am a fair C++ programmer but I do not have the editor on my computer
>anymore.
>How can I go about getting a program to code Perl for CGI?
>
>Please respond to sender andy@solution4u.com
>and group
>
>--
>Andy Sutorius
>Image Solutions
>visit http://www.sutorius.com
>
>____International Webmasters Association____
> Charlotte, North Carolina Chapter
> *Chairman*
> http://www.irwa.org
>
>
------------------------------
Date: Mon, 27 Oct 1997 19:53:14 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: perl newbie question
Message-Id: <633njm$g2u@bgtnsc01.worldnet.att.net>
You might try this:
opendir(FOLDER,"/usr/whatever/my/directory/name/is") or die "Perl can't find
your folder";
@files = readdir(FOLDER);
closedir FOLDER;
Now @files will contain a list of all the files in your directory. If you
take this approach you'll want to account for the two "special" directories:
foreach (@files) {
next if /\./;
next if /\.\./;
#
# the rest of your code goes here
#
}
unless of course you actually want to deal with the . and .. directories.
Usually they just cause you trouble (especially if you're trying to get a
recursive directory list :D).
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Alan Hearn wrote in message ...
>I want to get a list of files to process.
>
>I tried the following:
>
> open(FILE_LIST, "ls | grep -v bak |");
>
>but FILE_LIST is empty. I thought this would work based on my PERL book
>showing the following example:
>
> open(FIND, "find . -print |");
>
>but this does not work either. Am I doing something wrong? Any help
>(email please as I do not use this newsgroup much... yet!) would be
>greatly appreciated.
>
>thanks,
>
> Alan S. Hearn MSG: GMBL M/S 8650
> Texas Instruments Phone: 972-480-2726
> Dallas, Texas Email: hearn@daldd.sc.ti.com
>
>
>
>--
>
>thanks,
>
> Alan S. Hearn MSG: GMBL M/S 8650
> Texas Instruments Phone: 972-480-2726
> Dallas, Texas Email: hearn@daldd.sc.ti.com
>
>
>
------------------------------
Date: Mon, 27 Oct 1997 20:17:30 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: Perl Suffix (Was: Can perl be maken to Compiler instead of interpreter?)
Message-Id: <633p15$nvo@bgtnsc01.worldnet.att.net>
I use .pl on my scripts in Unix/Linux, Mac and DOS/Win. At work I write Perl
scripts that are handled by one or two other people in my group and then
sent to subsidiaries in other countries, so there's quite a benefit to
having a script easily recognizable as a Perl script. At home I use .pl in
Windows because I think it's a good habit to get into, and because that
allows me to see a spiffy pearlish icon on my Windows desktop. (One of these
days I hope to find a camel icon instead. :D) And when I'm writing scripts
to use under Unix or Linux, I use .pl because . . . well, because I feel
like it, that's why. Unless I'm using #! and chmod u+x to make a script
executable, in which case I may leave off the extension.
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Doug Seay wrote in message <34545AB2.4FD8BF45@absyss.fr>...
>Chris Russo wrote:
>>
(buncha stuff snipped)
>Do most people put .pl at the end of perl filenames? Am I the odd man
>out here? I'd understand that for folks trapped in a 8.3 filename
>system or filetype baseed OS, but do people do that who use modern OSes?
>
>- doug
------------------------------
Date: Tue, 28 Oct 1997 00:14:14 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Problem with a perl porg/script
Message-Id: <mrv336.ja6.ln@localhost>
bob jones (sa.zombie@iname.com) wrote:
: I havn't been using perl all that long, but I can't seam to find any bug in
: the code that gives me an error. When i run it localy, it is fine, but
: over unix server, has errors.
^^^^^^^^^^
So what were they?
The errors, I mean.
Error messages are often helpful when trying to find the cause of
the error...
But never mind telling us the error messages, try the CGI newsgroup:
comp.infosystems.www.authoring.cgi
-----
Perl FAQ, part 9:
"My CGI script runs from the command line but not the browser.
Can you help me fix it?"
: Thanks to all and to all a good night.
Uh huh.
--
Tad McClellan SGML Consulting
tadmc@flash.net Perl programming
Fort Worth, Texas
------------------------------
Date: 28 Oct 1997 09:14:00 GMT
From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer)
Subject: Re: Problems compiling Perl5.004_u1 on Solaris2.6.
Message-Id: <casper.878030415@uk-usenet.uk.sun.com>
[[ Reply by email or post, don't do both ]]
Tom Arseneault <arsen@erg.sri.com> writes:
>I downloaded a virgin latest.tar.gz file, unziped/tared it, ran
>Configure, ran make depend and got the following errors on every file it
>tried:
>/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.2/include/sys/param.h:187:
>warning: `NBBY' redefined
This looks like a gcc configured for Solaris 2.5; you need to rebuild for 2.6.
And you need to patch gcc before doing so:
In the Solaris FAQ but probably equally applicable elsewhere:
The solaris FAQ says:
6.27) I can't seem to get gcc to work under Solaris 2.6
As with all new Solaris releases, you need to reinstall gcc after
upgrading. Unfortunately, Solaris 2.6 include files don't get
properly fixed by fixincludes. To fix this, apply the following
patch to fixinc.svr4 before building gcc.
*** ./fixinc.svr4.org Thu Jun 15 23:03:29 1995
--- ./fixinc.svr4 Thu Sep 4 13:41:29 1997
***************
*** 189,194 ****
--- 189,195 ----
s/__STDC__[ ][ ]*==[ ][ ]*1/defined (__STRICT_ANSI__)/g
s/__STDC__[ ][ ]*!=[ ][ ]*0/defined (__STRICT_ANSI__)/g
s/__STDC__ - 0 == 0/!defined (__STRICT_ANSI__)/g
+ s/__STDC__ - 0 == 1/defined (__STRICT_ANSI__)/g
/^typedef[ ][ ]*[unsigned ]*long[ ][ ]*[u_]*longlong_t;/s/long/long long/
' $2/$file > $2/$file.sed
mv $2/$file.sed $2/$file
--- end of excerpt from the FAQ
Questions marked with a * or + have been changed or added since
the FAQ was last posted
The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
------------------------------
Date: 28 Oct 1997 10:40:51 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Problems compiling Perl5.004_u1 on Solaris2.6.
Message-Id: <isn2juql7g.fsf@godzilla.kiere.ericsson.se>
Tom Arseneault <arsen@erg.sri.com> writes:
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.2/include/sys/param.h:187:
^^^^^^^
Get gcc 2.7.2.3 instead, and don't forget to patch it according to the
Solaris FAQ.
--
Calle Dybedahl, UNIX Sysadmin
qdtcall@esavionics.se http://www.lysator.liu.se/~calle/
------------------------------
Date: Tue, 28 Oct 1997 00:15:17 -0500
From: Chipmunk <rjk@coos.dartmouth.edu>
Subject: Re: Problems with $ARGV
Message-Id: <345574E4.78D5@coos.dartmouth.edu>
A. Deckers wrote:
>
> This works just fine:
>
> #!/usr/bin/perl
>
> if (@ARGV) {
> print map {"$_\n"} @ARGV;
> }
>
> Call it as:
>
> $arg foo f*.1 bar
>
> And the output is:
>
> foo
> f*.1
> bar
>
That's not the output I get...
~> cat > temp
#!/usr/local/bin/perl5
if (@ARGV) {
print map {"$_\n"} @ARGV;
}
~> chmod u+x temp
~> temp foo f*.1 bar
temp: No match.
~>
Chipmunk
------------------------------
Date: Mon, 27 Oct 1997 23:45:42 -0500
From: Chipmunk <rjk@coos.dartmouth.edu>
Subject: Re: Regexp optimizing
Message-Id: <34556DF6.44A1@coos.dartmouth.edu>
Mike Heins wrote:
>
> Roar Andre Lauritzsen (roarl@metaphor.no) wrote:
> :
> : Question: Why is
> : /^([(\w][()*\w\s]*[)*\s])?$id\s*([(;=]|$)/o || /^#define\s*$id\b/o
> : 10 times faster than
> : /^(([(\w][()*\w\s]*[)*\s])?$id\s*([(;=]|$))|(#define\s*$id\b)/o
> : ???
>
> Less copying during the pattern match (2 less paren sets) and
> the efficient anchoring of the opening strings ^[\w(] and ^#define.
Only the first example anchors #define to the beginning of the line.
In regexps, concatenation binds tighter than alternation.
Perhaps this was intended:
/^(([(\w][()*\w\s]*[)*\s])?$id\s*([(;=]|$)|(#define\s*$id\b))/o
Chipmunk
------------------------------
Date: Tue, 28 Oct 1997 11:28:38 +0300
From: Vladimir Afanasiev <afan@elnet.msk.ru>
Subject: Russian PERL mailing list
Message-Id: <3455A236.6E8BC8DA@elnet.msk.ru>
http://goblin.relcom.kz
--
Vladimir
http://www.ipclub.ru
------------------------------
Date: 28 Oct 1997 10:45:22 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: sorting on primary and secondary key
Message-Id: <islnzeqkzx.fsf@godzilla.kiere.ericsson.se>
Kuntal M Daftary <daftary@cisco.com> writes:
> how can i achieve that?
By reading section 4 of the Perl FAQ.
--
Calle Dybedahl, UNIX Sysadmin
qdtcall@esavionics.se http://www.lysator.liu.se/~calle/
------------------------------
Date: Mon, 27 Oct 1997 22:00:48 -0500
From: rob shaffer <s_rsshaffer@mail.clairon.edu>
Subject: Storage size computation
Message-Id: <34555560.7242@mail.clairon.edu>
i am writing a paper for princples of programming class.
i am looking for some info on this. when and how does perl set up
storage for its types. the couple books i have do not go into to much
detail on this.
i assume perl sets up pointers for the types at compile time. then
works with linked lists durning runtime.
------------------------------
Date: 28 Oct 1997 08:57:14 GMT
From: "CopperHead" <bjapan@cyberis.net>
Subject: Re: To get perl running on my system...
Message-Id: <01bce37e$a32ab200$5360d8cb@uh>
I have this same problem with installing Perl on my win95 machine. could
someone please help me with this issue. my email address is
bjapan@cyberis.net
thank you in advance
ch
Scott Geller <gellergrant@mindspring.com> wrote in article
<62temb$h6j@camel20.mindspring.com>...
> ... I think I need to compile it with Visual C++ ... correct? Is there a
> pre-compiled version of perl available to download?
>
> If my only option is to compile it with V C++, anyone know where I can
get a
> copy?
>
> Your help is appreciated... learning perl is turning out to be more
> difficult than I thought it would be.
>
> If possible, I would prefer a direct e-mail response...
> gellergrant@mindspring.com
>
> Regards,
>
> Scott Geller.
>
>
>
------------------------------
Date: 28 Oct 1997 10:27:10 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Urgent Perl question
Message-Id: <isra96qlu9.fsf@godzilla.kiere.ericsson.se>
"Joseph June" <jjune@miday.uchicago.edu> writes:
> Does anyone have any ideas or suggestions?
Have you considered sucking the entire file into memory, do whatever
edits you need to do and then write the whole thing out again?
--
Calle Dybedahl, UNIX Sysadmin
qdtcall@esavionics.se http://www.lysator.liu.se/~calle/
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 1237
**************************************