[15510] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2920 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue May 2 06:05:30 2000

Date: Tue, 2 May 2000 03:05:14 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <957261914-v9-i2920@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 2 May 2000     Volume: 9 Number: 2920

Today's topics:
    Re: CGI.pm and -w <rootbeer@redcat.com>
    Re: CGI.pm and -w <webmaster@momsathome.on.ca>
    Re: CGI.pm and -w <rootbeer@redcat.com>
    Re: commands!!! (Michael Budash)
    Re: confusing backtracking fjherna@my-deja.com
    Re: convert to tab delimited file. <k.willshaw@ascc.co.uk>
    Re: DBI Installation Win2K <gellyfish@gellyfish.com>
    Re: Documenting Cron <gellyfish@gellyfish.com>
    Re: EZ: How do I check if a value exists in an array? (Craig Berry)
    Re: EZ: How do I check if a value exists in an array? (Villy Kruse)
    Re: HOW CAN I TELL... (OT) <lr@hpl.hp.com>
    Re: HOW CAN I TELL... (OT) (Tony L. Svanstrom)
    Re: How to know someone exit? <gellyfish@gellyfish.com>
    Re: is there sendmail on Win32 platform (Michael Budash)
    Re: order cgi vars are passed in, predictable? (Tad McClellan)
    Re: Order of evaluation (Was: Re: regex) (Brand Hilton)
    Re: Order of evaluation (Was: Re: regex) <tye@metronet.com>
    Re: overloading & 'constant' subroutines (Ilya Zakharevich)
    Re: overloading & 'constant' subroutines <rootbeer@redcat.com>
    Re: perl script to an exe? <rootbeer@redcat.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Mon, 1 May 2000 21:12:27 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: CGI.pm and -w
Message-Id: <Pine.GSO.4.10.10005012102390.13677-100000@user2.teleport.com>

On Mon, 1 May 2000, Jennifer wrote:

> I'm not good with terminology.  Enclosing in a block means
> enclosing in curly braces right?

Right.

> I tried the following and it still prints a warning to the logs. 
> Am I missing something?
> 
> {
> local $^W = 0; #quiet warning that these variables only used once
> $CGI::POST_MAX=1024 * 1000;  # max 1M posts
> $CGI::DISABLE_UPLOADS = 1;  # no uploads
> }

Not missing anything about disabling warnings at runtime, but you forgot
to indent your block's contents. :-)

The 'used only once' message is a compile-time warning. You can't disable
it by turning off warnings at runtime. Not your fault; you were merely
given bad advice.

But those variables _are_ used more than once, if you're using the CGI
module. (You are, aren't you?) That is, once in your code, and additional
times within the module.

So, why are you getting this warning message? My guess is that you aren't 
using a recent version of the CGI module. You may have a more recent one
on your machine, but the one you're getting inside your program is either
old or modified. (This is just a guess, but I've been guessing pretty well
lately. :-)  Try this program to see which version you really have:

    #!/usr/bin/perl -w

    use CGI;
    print "Content-type: text/plain\n\n";
    print "CGI module's version is $CGI::VERSION.\n";

Is it, perhaps, an old version which didn't support those variables?

Hope this helps!

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



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

Date: Tue, 02 May 2000 00:51:01 -0400
From: Jennifer <webmaster@momsathome.on.ca>
Subject: Re: CGI.pm and -w
Message-Id: <390E5EB5.BC858A03@momsathome.on.ca>



Tom Phoenix wrote:
> 
> On Mon, 1 May 2000, Jennifer wrote:

> >
> > {
> > local $^W = 0; #quiet warning that these variables only used once
> > $CGI::POST_MAX=1024 * 1000;  # max 1M posts
> > $CGI::DISABLE_UPLOADS = 1;  # no uploads
> > }
> 
> Not missing anything about disabling warnings at runtime, but you forgot
> to indent your block's contents. :-)

:-) To avoid wrapping here.



> So, why are you getting this warning message? My guess is that you aren't
> using a recent version of the CGI module. You may have a more recent one
> on your machine, but the one you're getting inside your program is either
> old or modified. (This is just a guess, but I've been guessing pretty well
> lately. :-)  Try this program to see which version you really have:


Yes I am using CGI.pm.  Version 2.36.  How can I find out when
(what version) those variables were added?

I guess if they aren't in my version.  Setting them twice only
shuts up -w, but has no effect on the program whatsoever, at
least until they upgrade the server.

This server is in bad need of upgrading for everything, but all
the upgrades are on hold.  They are waiting for the new release
of Solaris before completing the upgrades.

Jennifer


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

Date: Mon, 1 May 2000 22:03:00 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: CGI.pm and -w
Message-Id: <Pine.GSO.4.10.10005012159090.13677-100000@user2.teleport.com>

On Tue, 2 May 2000, Jennifer wrote:

> Yes I am using CGI.pm.  Version 2.36.  How can I find out when
> (what version) those variables were added?

They were added sometime after 2.36, from the looks of things. :-)

But you don't have to wait for someone else to install the module; have
you seen the instructions on keeping your own module directory? They're in
the FAQ. Cheers!

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



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

Date: Mon, 01 May 2000 22:45:56 -0700
From: mbudash@wcws.com (Michael Budash)
Subject: Re: commands!!!
Message-Id: <mbudash-0105002245560001@adsl-216-103-91-123.dsl.snfc21.pacbell.net>

In article <8dnp47$9uc$1@nnrp1.deja.com>, prakash_ojha@my-deja.com wrote:

> hi I'm a newbie and need help with these three things for now.
> 1). how can you open a filehandle for both writing and reading.
> 2)  how to move to the last line in the file opened.
> 3) how to move to the first line (or better any specified line)
> 
> any help will be appreciated.
> thanks,
> prakash
> 

see what you can get from this:

http://www.stonehenge.com/merlyn/WebTechniques/col04.html

hth-
-- 
Michael Budash ~~~~~~~~~~ mbudash@wcws.com


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

Date: Tue, 02 May 2000 09:19:33 GMT
From: fjherna@my-deja.com
Subject: Re: confusing backtracking
Message-Id: <8em6is$f4c$1@nnrp1.deja.com>

In article
<Pine.GSO.4.10.10004300848090.1278-100000@user2.teleport.com>,
  Tom Phoenix <rootbeer@redcat.com> wrote:
Hi Tom,

> On Sun, 30 Apr 2000 fjherna@europa3.com wrote:
>
> >  Let's consider the Regex:  /x([^/]|[^x]/)*x/
> > and the string:  /x d x//5 /x e x/
>
> Okay, but let's quote the pattern so that folks won't think that the

Ok, it is understandable.

> > I have tested the Regex against the string (in Perl) and it
> > matches the full string, but when trying to explain
> > what backtrackings are done, I came to the conclusion
> > that the Regex will only match:  /x d x/
> > I didn't understand your explanation, but here's one of my own. :-)

:-)
Well, I tried to do my best. Sorry. Backtrack is not easy to
understand but it is worst trying to explain it and moreover
when you are not English native speaker.
:-))

> You know, it would be really cool if someone could make a program
which
> would trace the execution of a regular expression through a string in
an
> easy-to-understand visual way.

That would be a wonderfull thing¡¡¡ but ...


> Or at least, in this case, show how the
> pattern managed to match the string. Well, I'll do my best on the
latter.

You really did perfect.

> Your confusion may have to do with this: If the engine matches one of
a
> set of alternatives, via the vertical bar, it saves the remaining
> alternatives as possible backtracking points. That's how it was able
to
> match the ' /' (above) as a unit rather than as a non-slash character.
> Does that help any?

It helped a lot ¡¡

But now I have to review all my backtracking concepts.
:-((

Would it work the same way when Regex

m{([^/] | [^x]/)*}

trying to match string

'a b x//c /x e x/'    ?

I ask because my Perl test gave a match at 'a b x//c ' but,
if I try to explain it in your way it matches until the last
'x' in the string.

Explaining in your way:

The pattern with comments:
m{
  (
  [^/]  # a character other than slash (alt.1)
  |     # or
  [^x]/ # a character other than x, followed by a slash (alt.2)
  )*    # zero or more

The string broken into pieces used by the RE engine in ¨my brain"
(I am not sure mine is perl compatible yet).

'a' ' ' 'b' 'x'     # some non-slashes characters (alt.1)
    '//'            # a non-x followed by a slash (alt.2)
    'c'             # another non-slash character (alt.1)
    ' /'            # a non-x followed by a slash (alt.2)
'x' ' ' 'e' ' ' 'x' # more non-slash characters (alt.1)
     '/'            # both alternative failed, so it will stop
                    # and will match at previous 'x'.

Best regards and thanks for your help,

--
Javi,
Valencia (Spain)


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Tue, 2 May 2000 09:55:57 +0100
From: "Keith Willshaw" <k.willshaw@ascc.co.uk>
Subject: Re: convert to tab delimited file.
Message-Id: <dJwP4.3180$ml4.3990@NewsReader>


Gary Artim <gary@dkstat.com> wrote in message
news:390DC127.345CB831@dkstat.com...
> I'm writing some html/cgi/perl code and wonder if anyone has found a
> filter program that converts native EXCEL files to tab delimited text
> files. Any info would be greatly appreciated. I do know that EXCEL
> provides this save option, I'm just looking for a software tool to do
> this.
>
>
> Thanks,
>

You can open Excel files with ODBC and the write the data as text

Keith




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

Date: 2 May 2000 07:00:14 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: DBI Installation Win2K
Message-Id: <8elqte$97k$1@orpheus.gellyfish.com>

On Mon, 01 May 2000 12:59:52 GMT Fred wrote:
> Hi, someone please help me install DBI on my server.  I've tried multiple
> times, with no luck.
> 
> There has to be an easy way to do this, but so far I haven't found this.
> I've searched now for many hours and have finally given up on finding the
> answer myself.  The help would be greatly appreciated.
> 
> I've tried using nmake and dmake but they both return errors.  I also tried
> 
> perl -MCPAN -e 'install Bundle::DBD::Informix'
> 
> No luck there either.


Unfortunately there is no binary of DBD::Informix available as far as I
know.  You will need to compile it yourself : If you have a supported
C compiler and the Informix Client SDK.  Of course if you have a
different compiler to the one used by ActiveState to compile their
distribution of Perl you will need to compile Perl yourself as well.

> 
> If I can't get this to work I'm going to have to turn to Visual Basic,
> something I don't want to do.
> 

Dont do that.  If all else fails you can use DBD::ODBC and the ODBC
drivers that come with the Client SDK.  You might want to ask in
comp.databases.informix about other options.

/J\
-- 
The only danger is if they send us to that terrible planet of the apes.
-- 
fortune oscar homer


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

Date: 2 May 2000 07:21:15 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Documenting Cron
Message-Id: <8els4r$d4e$1@orpheus.gellyfish.com>

In comp.lang.perl.misc Barry Margolin <barmar@genuity.net> wrote:
> In article <htp-A5E1D9.11364801052000@news.metropolis.net.au>,
> Henry  <htp@mac.com> wrote:
>>In article <LB3P4.543$Go2.9723@news.uswest.net>, "Doug Thomas" 
>><dougtho@geocities.com> wrote:
>>
>>> Does anyone have a program/script to document the crontab listing?
>>
>>[linux]$ man 5 crontab
> 
> Huh?  He's looking for a tool that will translate the crontab into
> something more user-friendly.  The crontab command just spits it out in its
> raw form.

But of course supplied with the knowledge that the manpage will provide
he will be able to write such a thing for himself.  If he didnt want to
write a program he wouldnt have posted to comp.lang.perl.misc .

I recall that such a program was posted in comp.lang.perl.misc in 1998
sometime.  I thought that I had a copy but I appear not to.  I am sure
a judicious searching of Deja News will supply the answer.


/J\
-- 
I can't believe it! Reading and writing actually paid off!
-- 
fortune oscar homer


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

Date: Tue, 02 May 2000 04:31:08 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: EZ: How do I check if a value exists in an array?
Message-Id: <sgsmgcut1g2157@corp.supernews.com>

Nick (nickysantoro@yahoo.com) wrote:
: Sorry if this is basic, but I am a leisure Perl programmer.

This is a classic example of what Larry Wall calls "false laziness" in
his essay on the three virtues of a good programmer.  Asking this question
here required getting into your newsreader, composing the subject line and
question, posting it, and (worst of all) waiting around for answers.
Conversely, doing

  perldoc -q contains

on your very own system would have got you your answer immediately.
(Actually, 'contains' was the third keyword I tried, after 'exists' and
'existence' -- but three tries with perldoc -q is still vastly quicker and
easier than using the net to get answers.)

-- 
   |   Craig Berry - cberry@cinenet.net
 --*--  http://www.cinenet.net/users/cberry/home.html
   |   "The road of Excess leads to the Palace
      of Wisdom" - William Blake


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

Date: 2 May 2000 08:39:59 GMT
From: vek@pharmnl.ohout.pharmapartners.nl (Villy Kruse)
Subject: Re: EZ: How do I check if a value exists in an array?
Message-Id: <slrn8gt52v.l3c.vek@pharmnl.ohout.pharmapartners.nl>

On Tue, 02 May 2000 04:31:08 GMT, Craig Berry <cberry@cinenet.net> wrote:
>Nick (nickysantoro@yahoo.com) wrote:
>: Sorry if this is basic, but I am a leisure Perl programmer.
>
>This is a classic example of what Larry Wall calls "false laziness" in
>his essay on the three virtues of a good programmer.  Asking this question
>here required getting into your newsreader, composing the subject line and
>question, posting it, and (worst of all) waiting around for answers.
>Conversely, doing
>



Not to mention sorting out the good anwers from the bas answers, which 
would require consulting the documentation and/or testing the the
suggestions.

Reading the FAQ from first line to last line (or at least the questions,
so you know what questions are answered) could realy save a lot of time
in the long run.




Villy


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

Date: Mon, 1 May 2000 23:11:25 -0700
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: HOW CAN I TELL... (OT)
Message-Id: <MPG.1378115eca4ebceb98a9ca@nntp.hpl.hp.com>

In article <slrn8gsghn.4l2.mgjv@verbruggen.comdyn.com.au> on Tue, 02 May 
2000 02:49:31 GMT, Martien Verbruggen <mgjv@verbruggen.comdyn.com.au> 
says...
> On Mon, 1 May 2000 14:50:06 -0700,
> 	Larry Rosler <lr@hpl.hp.com> wrote:
> > In article <dennis_marti-B8D5EA.01450829042000@news.starpower.net> on 
> > Sat, 29 Apr 2000 01:45:08 -0400, Dennis Marti <dennis_marti@yahoo.com> 
> > says...
> > > In article <MPG.1373a45461592b1198a9ae@nntp.hpl.hp.com>, Larry Rosler 
> > > <lr@hpl.hp.com> wrote:
> > > 
> > > > On 'most' operating systems (i.e., on the operating systems that run 90% 
> > > > or more of the world's computers), the system imposes a mandatory lock 

 ...

> > Every year for the last decade, Microsoft's share of the market for 
> > Intel-compatible PC operating systems has stood above ninety percent.  
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 ...

> <nit>
> 
> "the world's computers" ne "Intel-compatible PC operating systems"
> 
> The figures (as mentioned above) get different when you include
> Macintoshes, and no doubt get even more different if you include SPARC
> and other architectures.
> 
> </nit>

I was well aware of the issue you raise, which would require a bit more 
research.

Relative to PCs, the number (not the cumulative expenditure) of other 
architectures is 'small'.  Relative to Windows, the number of other 
operating systems is 'small'.  For appropriate values of 'small'.

I perceive attitudes changing around here, as people realize the 
importance of PCs and other Windows-based systems to the future success 
of Perl.  Cheers for ActiveState!

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Tue, 2 May 2000 09:05:47 +0200
From: tony@svanstrom.com (Tony L. Svanstrom)
Subject: Re: HOW CAN I TELL... (OT)
Message-Id: <1e9zxlp.1m3vtl3nqqvebN%tony@svanstrom.com>

Larry Rosler <lr@hpl.hp.com> wrote:

> I perceive attitudes changing around here, as people realize the
> importance of PCs and other Windows-based systems to the future success of
> Perl.

I can't agree with you on that. Once people start using Windows-based
systems they tend to get stuck within the world of Windows, not looking
outside it for good solutions. If we hadn't had that Linux-hype more and
more "experts" would "grow up" with Windows and looking mainly at what's
available from the same source as it; and then they end up chosing
between something marketed as an web-thing and something strange and
complicated that only geeks care about.
In a short-term view it's very good for Perl to reach out to more and
more people using Windows, but there's also a long-term danger with it.

I know, I know... people will always study at universities and will that
way find their way to UN*X and so on, but more and more people work with
Internet-related things without ever going to a university, or studied
something far from related to computers... Having a single company
controlling a market is simply too dangerous to be good for anyone but
that company.


     /Tony
-- 
     /\___/\ Who would you like to read your messages today? /\___/\
     \_@ @_/  Protect your privacy:  <http://www.pgpi.com/>  \_@ @_/
 --oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
 DSS: 0x9363F1DB, Fp: 6EA2 618F 6D21 91D3 2D82  78A6 647F F247 9363 F1DB
 ---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
    \O/   \O/  ©1999  <http://www.svanstrom.com/?ref=news>  \O/   \O/


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

Date: 2 May 2000 06:50:13 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: How to know someone exit?
Message-Id: <8elqal$7c9$1@orpheus.gellyfish.com>

On Mon, 1 May 2000 21:40:54 +0900 sang wrote:
> Hi all
> 
> How do i know someone had left my homepage(CGI)?
> 

I believe you have the wrong newsgroup.  You might try

    comp.infosystems.www.authoring.cgi

But I actually think you will need :

    comp.lang.javascript

wherein is discussed ways of altering the behaviour of browsers.

/J\
-- 
I want to share something with you: The three little sentences that will
get you through life. Number 1: Cover for me. Number 2: Oh, good idea,
Boss! Number 3: It was like that when I got here.
-- 
fortune oscar homer


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

Date: Mon, 01 May 2000 22:54:22 -0700
From: mbudash@wcws.com (Michael Budash)
Subject: Re: is there sendmail on Win32 platform
Message-Id: <mbudash-0105002254220001@adsl-216-103-91-123.dsl.snfc21.pacbell.net>

In article <1QjP4.2265$jv3.206470@m2newsread.uni2.es>, "Dan Evans"
<danevans@wanadoo.es> wrote:

> Philip Monitor <brilliance201@hotmail.com> escribió en el mensaje de
> noticias 4hbggsga6d050pl72kf5u936979v14t039@4ax.com...
> > On Thu, 27 Apr 2000 20:07:05 +0800, "netnews"
> > <ya_hsiung@ms2.url.com.tw> wrote:
> >
> > >as title. so that I use it to send mail and receive mail in my perl
> script
> > >running on win98.
> > >
> >
> > I'd check out Blat by Tim Charon.  I use it and it seems to work
> > great.
> >
> > http://www.interlog.com/~tcharron/
> 
> Philip, (or anyone else that knows the answer)
> 
> I have been pulling my hair out for over 24 hours with Blat now. I have a
> page in a site that needs to be working yesterday, how did you get it to
> work? I know the answer is probably staring me in the face, butI can't see
> it.
> 
> Its an NT system, I can get the script to work fine when run from the
> command line on my own machine, but it doesn't work through a web page,
> either on my local system or the host. The example that the host gives
> doesn't work, and I can't find any documentation to show where I am going
> wrong (at least nothing that doesn't give a 404)
> 
> Any tips? The recipient is always the same, as is the message (in this case)
> so that can be hard coded. As soon as things calm down here I can get onto
> it full time and learn all the ins and outs, but at the moment I have a
> million and one things to do.
> 
> TIA

use Mail::Sendmail;

hth-
-- 
Michael Budash ~~~~~~~~~~ mbudash@wcws.com


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

Date: Mon, 1 May 2000 23:44:51 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: order cgi vars are passed in, predictable?
Message-Id: <slrn8gsjpj.3jn.tadmc@magna.metronet.com>

On Tue, 02 May 2000 02:30:14 GMT, Alex <bian_les@hotmail.com> wrote:

>Is it true that cgi values aren't
>     always passed to a cgi in order as
>     they are on page? I have heard
>     this is true, but so far, I can always
>     predict the order my vars will come
>     through in the QUERY_STRING. I
>     am programming cgi's in C, but I figured
>     perl people could answer this. 


What is your Perl question?


Please ask CGI questions in a newsgroup that is connected
in some way to WWW stuff, such as:

      comp.infosystems.www.authoring.cgi


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


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

Date: 1 May 2000 22:51:48 GMT
From: bhilton@tsg.adc.com (Brand Hilton)
Subject: Re: Order of evaluation (Was: Re: regex)
Message-Id: <8el1q4$bg6@mercury.adc.com>

In article <MPG.1374a95e311095a998a9b5@nntp.hpl.hp.com>,
Larry Rosler  <lr@hpl.hp.com> wrote:
>In C, the order of evaluation of the operands of a binary operator is 
>explicitly unspecified for most operators.  Left-to-right evaluation is 
>guaranteed for only a few binary operators, as in Perl:  && || and 
>comma.
>
>Perl should document either that the order of evaluation of the operands 
>of a binary operator is in general unspecified, or it should document 
>that it is left-to-right.  In the absence of either specification, 
>assertions such as yours are suspect.

Does the Camel count?  There's a nice operator precedence table
(including associativity) on page 76.

-- 
Brand Hilton  brand_hilton@adc.com
ADC Telecommunications
Richardson, Texas


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

Date: 1 May 2000 19:12:07 -0500
From: Tye McQueen <tye@metronet.com>
Subject: Re: Order of evaluation (Was: Re: regex)
Message-Id: <8el6gn$fgq@beanix.metronet.com>

Larry Rosler <lr@hpl.hp.com> writes:
) 
) You may think I am being perverse or obstinate even to raise these 
) issues for Perl.  But my C indoctrination screams out for clarity.
) 
) As an example, someone today posited in Fun With Perl the equivalence of 
) the following two expressions (except for the side-effect change in the 
) final value of $_):
) 
)     $_ & $_ - 1
) 
)     $_ & --$_
) 
) To which I say, how the hell do you know that?  Perhaps the decrement 
) occurs first, so the second expression is equivalent to:
) 
)     $_ - 1 & $_ - 1 
[...]
) Perl is more firtunate, 
) because there is only one 'implementation'.

Actually, there are several implementations of Perl, the most
common are probably currently 5.005_03 and 5.6.0 or maybe
5.004_04.  So the question is not what C<$_&--$_> means for a
particular "implementation" [a.k.a. "version"] of Perl, but
whether it will continue to mean that in the next version.

I see a strong tendancy for "if it ain't documented, it can
change".  So you would be correct [IMHO] to criticize code that
used C<$_&--$_> because it might well break in a future version.

And I think that if you submitted a patch to make this more
strongly stated in the documentation, it would be accepted, and
would be a very good thing.
-- 
Tye McQueen    Nothing is obvious unless you are overlooking something
         http://www.metronet.com/~tye/ (scripts, links, nothing fancy)


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

Date: 2 May 2000 06:22:32 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: overloading & 'constant' subroutines
Message-Id: <8els78$3ob$1@charm.magnus.acs.ohio-state.edu>

[A complimentary Cc of this posting was sent to Tom Phoenix 
<rootbeer@redcat.com>],
who wrote in article <Pine.GSO.4.10.10005011041180.13677-100000@user2.teleport.com>:
> Still, a future version of Perl could allow you to rename s/// and m//,

Hmm, we discussed user-defined quoting operators, but going all the
way up to override s///  ?!!  Keep in mind that s{}{}flags would
quote/non-quote the second argument depending on flags...

Ilya


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

Date: Mon, 1 May 2000 23:40:53 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: overloading & 'constant' subroutines
Message-Id: <Pine.GSO.4.10.10005012328110.13677-100000@user2.teleport.com>

On 2 May 2000, Ilya Zakharevich wrote:

> > Still, a future version of Perl could allow you to rename s/// and
> > m//,
> 
> Hmm, we discussed user-defined quoting operators, but going all the
> way up to override s/// ?!!

Well, I was thinking that, instead of overriding them, it would be more
generally interesting if you could rename them. So, if you wanted your own
function named 's', you might choose to rename the built-in 's' as, say,
'sub'. Then, when you want to add some string to the end of whatever is in
$_, you might use a line of code like this:

    sub ($) { shift };

On second thought, maybe that line of code would be misunderstood. 

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



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

Date: Mon, 1 May 2000 22:18:43 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: perl script to an exe?
Message-Id: <Pine.GSO.4.10.10005012209270.13677-100000@user2.teleport.com>

On Tue, 2 May 2000, kraziej wrote:

> I went through the FAQ's but am totally lost, 

Well, I'm glad you tried! But if anyone here has a more comprehensible
explanation than what's already in the FAQ, we'd have put it into the FAQ.
Nevertheless, I'll take a try....

> Can someone be polite enough to give me pointers or guides to create
> an exe on win(9x) from a simple perl script?

> which, I assume will run by itself, without perl.exe.

Probably that's not what you want. It sounds as if you're trying to make
something that would be easier to install, configure, and get running than
perl itself. You're not likely to get that, IMHO. I say that partly
because the ActiveState port of Perl to Windows is so simple and fast to
install. (If you want something else, ask again, and we'll tell you why
compiling won't give you that either. :-)

But, if you must, have you tried perlcc yet? Be aware that the whole
compiler suite should probably not be used for anything more than
experimental purposes.

> If in LINUX, what should I need for cross compiling?

First, you write a suitable cross-compiler.... :-)

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



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

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 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.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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.

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


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