[24313] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 6504 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun May 2 18:10:38 2004

Date: Sun, 2 May 2004 15:10:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 2 May 2004     Volume: 10 Number: 6504

Today's topics:
    Re: How to call another program <David@Grey.con>
    Re: How to call another program <1usa@llenroc.ude>
    Re: How to call another program <David@Grey.con>
    Re: How to call another program <1usa@llenroc.ude>
    Re: How to call another program <David@Grey.con>
    Re: How to call another program <1usa@llenroc.ude>
    Re: How to call another program <tony_curtis32@_SPAMTRAP_yahoo.com>
    Re: How to call another program <David@Grey.con>
    Re: How to call another program <David@Grey.con>
    Re: How to call another program <tony_curtis32@_SPAMTRAP_yahoo.com>
    Re: How to call another program <spamtrap@dot-app.org>
        is there something more elegant to convert Dos to unix  (Andrew)
    Re: is there something more elegant to convert Dos to u <noreply@gunnar.cc>
    Re: is there something more elegant to convert Dos to u <uri@stemsystems.com>
        need help with security <webmaster @ infusedlight . net>
    Re: OSs with Perl installed <kevin@vaildc.net>
    Re: Regexp question... <gnari@simnet.is>
    Re: Regexp question... <noreply@gunnar.cc>
    Re: single-byte values (Don Stock)
    Re: single-byte values <uri@stemsystems.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sun, 02 May 2004 18:49:36 GMT
From: David Grey <David@Grey.con>
Subject: Re: How to call another program
Message-Id: <40953C4A.DD5E32ED@Grey.con>



gnari wrote:

> "David Grey" <David@Grey.con> wrote in message
> news:40952431.C2232C1F@Grey.con...
> >
> [snip discussion about execution and fork]
>
> forget about fork here. that only came up because you
> were talking about 'executing a script', when what
> you want to do is to submit a HTTP request in the
> middle of a cgi process.
>
> read Tony's post in this thread.
>
> gnari


It does no good to tell me to go off someplace and look something
up when I have not a clue what you are saying in the first place,
and don't have a clue what to look for. We are talking about a
language here, and it would help if people could show a bit of code
what you are saying. It is like a christian telling someone it is right
in Psalms go look it up, well there are 150 chapters in Psalms
where do you start. (Stating a fact not trying to be gruff.)

What I need to do is have a script that runs a script first on the
doman.com that performs a function that has to be done first, then
continue the script to copy a file produced on the domain.com .
I want a file from the A machine to the B machine every time a
html page come up so the data is current every time. I have finally
worked out everything but running the script on domain.com
and continuing, it will do one or the other, but not both. The
running of the script on domain.com must happen first.

Reading Tony's post in this thread is gibberish, it has no meaning
at this point, I don't know what he said. What I need is:

Run script on domain.com

Wait long enough for that to finish

continue script

That's it, the run script on domain.com must happen first.











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

Date: 2 May 2004 19:41:21 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude>
Subject: Re: How to call another program
Message-Id: <Xns94DD9F99FFCB1asu1cornelledu@132.236.56.8>

David Grey <David@Grey.con> wrote in news:40953C4A.DD5E32ED@Grey.con:

> gnari wrote:
> 
>> read Tony's post in this thread.
>>
>> gnari
> 
> 
> It does no good to tell me to go off someplace and look something
> up when I have not a clue what you are saying in the first place,
> and don't have a clue what to look for. We are talking about a
> language here, and it would help if people could show a bit of code
> what you are saying. It is like a christian telling someone it is right
> in Psalms go look it up, well there are 150 chapters in Psalms
> where do you start. (Stating a fact not trying to be gruff.)

Tony did put it best (<877jvu9558.fsf@limey.hpcc.uh.edu>):

>> You don't "call another program", you submit data to a URL.
>> (There might be a program of some kind implementing the
>> response to you from wherever the request is handled, but that
>> is irrelevant.)
>> 
>> "perldoc lwpcook" has various examples for LWP.  Construct the
>> request and send it off.  Parse the response for what you need
>> and carry on processing...

 
> What I need to do is have a script that runs a script first on the
> doman.com that performs a function that has to be done first, then
> continue the script to copy a file produced on the domain.com .
> I want a file from the A machine to the B machine every time a
> html page come up so the data is current every time. 

Then write it using the examples provided in the docs you have been 
referred to. If you have problems once you actually try to do your own 
work, then you can come back and ask.

> I have finally worked out everything

Apparently not. You have a lot of reading to do to understand how HTTP 
works.

> Reading Tony's post in this thread is gibberish, it has no meaning
> at this point, I don't know what he said.

Nice attitude. That'll get you a lot of help around here.

> What I need is:
> 
> Run script on domain.com
> 
> Wait long enough for that to finish
> 
> continue script
> 
> That's it, the run script on domain.com must happen first.

Did you actually take a look at:

http://search.cpan.org/~gaas/libwww-perl-5.79/lib/LWP/Simple.pm

You should also be able to access it on your computer using

perldoc LWP::Simple

If you have made it this far, the following might help:

#! perl

use strict;
use warnings;

$| = 1;

use CGI qw/ :cgi /;
$CGI::POST_MAX = 1024;
$CGI::DISABLE_UPLOADS = 1;

use HTML::Entities;
use LWP::Simple;

use Regexp::Common qw/ URI /;

my $url = param('url');
$url = (defined $url ? $url : '');

if( $url =~ /^$RE{URI}{HTTP}{-keep}$/ ) {
    my $content = get($1);
    if(defined $content) {
        show_results(HTML::Entities::encode($content));
    } else {
        show_form();
    }    
} else {
    show_form();
}


sub show_form {
    print header();
    print<<END;
<html>
<head><title>Get Source</title></head>
<body>
<form>
<p>
URL:&nbsp;<input type="text" name="url" size="40">
<input type="submit">
</form>
</p>
</body>
</html>
END
 
}

sub show_results {
    my ($content) = @_;

    print header();
    print<<END;
<html>
<head><title>Got Source!</title></head>
<form>
<p>
URL:&nbsp;<input type="text" name="url" size="40">
<input type="submit">
</form>
<h1>Results from previous request</h1>
<pre>
$content
</pre>
</body>
</html>
END

}
__END__



-- 
A. Sinan Unur
1usa@llenroc.ude (reverse each component for email address)


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

Date: Sun, 02 May 2004 20:13:43 GMT
From: David Grey <David@Grey.con>
Subject: Re: How to call another program
Message-Id: <40954FE8.4E702A79@Grey.con>



A. Sinan Unur wrote:

> David Grey <David@Grey.con> wrote in news:40953C4A.DD5E32ED@Grey.con:
>
> > gnari wrote:

>
>
> > What I need is:
> >
> > Run script on domain.com
> >
> > Wait long enough for that to finish
> >
> > continue script
> >
> > That's it, the run script on domain.com must happen first.
>
> Did you actually take a look at:
>
> http://search.cpan.org/~gaas/libwww-perl-5.79/lib/LWP/Simple.pm
>
> You should also be able to access it on your computer using
>
> perldoc LWP::Simple
>
> If you have made it this far, the following might help:
>
> #! perl
>
> use strict;
> use warnings;
>
> $| = 1;
>
> use CGI qw/ :cgi /;
> $CGI::POST_MAX = 1024;
> $CGI::DISABLE_UPLOADS = 1;
>
> use HTML::Entities;
> use LWP::Simple;
>
> use Regexp::Common qw/ URI /;
>
> my $url = param('url');
> $url = (defined $url ? $url : '');
>
> if( $url =~ /^$RE{URI}{HTTP}{-keep}$/ ) {
>     my $content = get($1);
>     if(defined $content) {
>         show_results(HTML::Entities::encode($content));
>     } else {
>         show_form();
>     }
> } else {
>     show_form();
> }
>
> sub show_form {
>     print header();
>     print<<END;
> <html>
> <head><title>Get Source</title></head>
> <body>
> <form>
> <p>
> URL:&nbsp;<input type="text" name="url" size="40">
> <input type="submit">
> </form>
> </p>
> </body>
> </html>
> END
>
> }
>
> sub show_results {
>     my ($content) = @_;
>
>     print header();
>     print<<END;
> <html>
> <head><title>Got Source!</title></head>
> <form>
> <p>
> URL:&nbsp;<input type="text" name="url" size="40">
> <input type="submit">
> </form>
> <h1>Results from previous request</h1>
> <pre>
> $content
> </pre>
> </body>
> </html>
> END
>
> }
> __END__
>
> -

That is not what I want to do (from what I can tell) I want to :

print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";

run this script before running the rest of the script. When I run the
above it goes off and does not  run the rest of the script that this
is in.







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

Date: 2 May 2004 20:31:35 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude>
Subject: Re: How to call another program
Message-Id: <Xns94DDA81E32B82asu1cornelledu@132.236.56.8>

David Grey <David@Grey.con> wrote in news:40954FE8.4E702A79@Grey.con:

> That is not what I want to do (from what I can tell) I want to :
> 
> print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";

Why this attachment to the redirect?
 
> run this script before running the rest of the script. When I run the
> above it goes off and does not  run the rest of the script that this
> is in.

I see no indication that you have read any of the responses. 
By definition, that line will _redirect_ the request to 

http://www.domain.com/cgi-bin/copyprog.pl

That's it. Basically, you can't have your cake and eat it too. You are 
telling the user's browser to go fetch a different page than yours and 
you are wondering why she has left you. 

Do you live in an area with high lead concentration?
-- 
A. Sinan Unur
1usa@llenroc.ude (reverse each component for email address)


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

Date: Sun, 02 May 2004 20:54:23 GMT
From: David Grey <David@Grey.con>
Subject: Re: How to call another program
Message-Id: <4095596F.CD34C9EB@Grey.con>



A. Sinan Unur wrote:

> David Grey <David@Grey.con> wrote in news:40954FE8.4E702A79@Grey.con:
>
> > That is not what I want to do (from what I can tell) I want to :
> >
> > print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";
>
> Why this attachment to the redirect?

I want it to run the script above. Redirect does it, but it wont run
the rest of the script. I don't know of any other way, that is why
I am here.

>
>
> > run this script before running the rest of the script. When I run the
> > above it goes off and does not  run the rest of the script that this
> > is in.
>
> I see no indication that you have read any of the responses.

Reading a post in german does little to know what they said, I
said I had not a clue what they were saying and you took that
as an insult. If you don't know that they are saying, you don't
what they are saying period.

> By definition, that line will _redirect_ the request to
>
> http://www.domain.com/cgi-bin/copyprog.pl
>
> That's it. Basically, you can't have your cake and eat it too. You are
> telling the user's browser to go fetch a different page than yours and
> you are wondering why she has left you.

I want the the script to run the above script, I don know any other
way, so far everyone instead of telling me says go look it
up yourself. If I don't know what to look up I can't look it up.

>
>
> Do you live in an area with high lead concentration?

No just an area where you expect me to run before I even know
how to walk. If you want to just be abusive and not help, I'm
sure you would be welcomed in any flame group. I don't see the
point of it here, if I knew what I was doing I would not be here.










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

Date: 2 May 2004 20:59:33 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude>
Subject: Re: How to call another program
Message-Id: <Xns94DDACDC3A9B7asu1cornelledu@132.236.56.8>

David Grey <David@Grey.con> wrote in news:4095596F.CD34C9EB@Grey.con:

> A. Sinan Unur wrote:
> 
>> David Grey <David@Grey.con> wrote in news:40954FE8.4E702A79@Grey.con:
>>
>> > That is not what I want to do (from what I can tell) I want to :
>> >
>> > print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";
>>
>> Why this attachment to the redirect?
> 
> I want it to run the script above. Redirect does it, but it wont run
> the rest of the script. I don't know of any other way, that is why
> I am here.

I just showed you another way. Did you actually try that script out with 
the URL you are interested in?

> if I knew what I was doing I would not be here.

You need to at least know something about what you are doing and be 
willing to learn and do some work on your own.

-- 
A. Sinan Unur
1usa@llenroc.ude (reverse each component for email address)


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

Date: Sun, 02 May 2004 16:06:38 -0500
From: Tony Curtis <tony_curtis32@_SPAMTRAP_yahoo.com>
Subject: Re: How to call another program
Message-Id: <87brl6lesh.fsf@limey.hpcc.uh.edu>

>> On Sun, 02 May 2004 20:54:23 GMT,
>> David Grey <David@Grey.con> said:

> A. Sinan Unur wrote:

>> David Grey <David@Grey.con> wrote in
>> news:40954FE8.4E702A79@Grey.con:
>> 
>> > That is not what I want to do (from what I can tell) I
>> want to :
>> >
>> > print "Location:
>> http://www.domain.com/cgi-bin/copyprog.pl\n\n";
>> 
>> Why this attachment to the redirect?

> I want it to run the script above. Redirect does it, but it
> wont run the rest of the script. I don't know of any other
> way, that is why I am here.

No, you want to GET (I assume) the URL above, and process the
response in some way.

> Reading a post in german does little to know what they said,

Jeepers, I *do* speak German!  That's spooky.

> I want the the script to run the above script, I don know
> any other way, so far everyone instead of telling me says go
> look it up yourself. If I don't know what to look up I can't
> look it up.

perldoc lwpcook, it has examples of building requests and
handling the responses.

LWP::Simple may be enough for what you're trying to do, but
it's difficult to tell.

To repeat: you are *not* running a script on another machine,
you are accessing a URL and processing its response.  That
might be what is going on "under the hood" but it is
irrelevant.  You really need to understand the difference
between running programs and processing URL responses, I have
the feeling this is tripping you up unnecessarily.


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

Date: Sun, 02 May 2004 21:35:53 GMT
From: David Grey <David@Grey.con>
Subject: Re: How to call another program
Message-Id: <40956328.47246212@Grey.con>



Tony Curtis wrote:

> >> On Sun, 02 May 2004 20:54:23 GMT,
> >> David Grey <David@Grey.con> said:
>
> > A. Sinan Unur wrote:
>
> >> David Grey <David@Grey.con> wrote in
> >> news:40954FE8.4E702A79@Grey.con:
> >>
> >> > That is not what I want to do (from what I can tell) I
> >> want to :
> >> >
> >> > print "Location:
> >> http://www.domain.com/cgi-bin/copyprog.pl\n\n";
> >>
> >> Why this attachment to the redirect?
>
> > I want it to run the script above. Redirect does it, but it
> > wont run the rest of the script. I don't know of any other
> > way, that is why I am here.
>
> No, you want to GET (I assume) the URL above, and process the
> response in some way.

No, I just want it to run, period, then the rest of the script that
calls that script to run, that's it.

>
>
> > Reading a post in german does little to know what they said,
>
> Jeepers, I *do* speak German!  That's spooky.

I don't though, so posting in a language I don't know then
faulting me for not knowing the language is not fruitful.

>
>
> > I want the the script to run the above script, I don know
> > any other way, so far everyone instead of telling me says go
> > look it up yourself. If I don't know what to look up I can't
> > look it up.
>
> perldoc lwpcook, it has examples of building requests and
> handling the responses.

But it had nothing that shows how to run a script. I
do not want to copy a file, I want to run the script, then
finish the process.

>
>
> LWP::Simple may be enough for what you're trying to do, but
> it's difficult to tell.
>
> To repeat: you are *not* running a script on another machine,
> you are accessing a URL and processing its response.

There goes that german again. Care to give an example that
(I don't even know what to call it because you say I can't use the
word run so I call it dlksj) I want to dlksj the script on the
domain.com
and continue the process. Nothing more, nothing less.



> That
> might be what is going on "under the hood" but it is
> irrelevant.  You really need to understand the difference
> between running programs and processing URL responses, I have
> the feeling this is tripping you up unnecessarily.


I want to dlksj the script and continue on.

print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";

does it but never comes back.





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

Date: Sun, 02 May 2004 21:45:16 GMT
From: David Grey <David@Grey.con>
Subject: Re: How to call another program
Message-Id: <4095655B.DC69082E@Grey.con>



A. Sinan Inner wrote:

> David Grey <David@Grey.con> wrote in news:4095596F.CD34C9EB@Grey.con:
>
> > A. Sinan Unur wrote:
> >
> >> David Grey <David@Grey.con> wrote in news:40954FE8.4E702A79@Grey.con:
> >>
> >> > That is not what I want to do (from what I can tell) I want to :
> >> >
> >> > print "Location: http://www.domain.com/cgi-bin/copyprog.pl\n\n";
> >>
> >> Why this attachment to the redirect?
> >
> > I want it to run the script above. Redirect does it, but it wont run
> > the rest of the script. I don't know of any other way, that is why
> > I am here.
>
> I just showed you another way. Did you actually try that script out with
> the URL you are interested in?

I'm not going to try what will not do what I want, I want
to run a script in a script, I saw no evidence what you posted
would do that.

>
>
> > if I knew what I was doing I would not be here.
>
> You need to at least know something about what you are doing and be
> willing to learn and do some work on your own.

Oh please, you can't know about something before you know about
something, you just want to flame others, not help them.
I don't see why you are here other than to gloat I know more than
you idiots. You cannot look up what you have no clue what to
look up, and you cannot learn something that is not in your
existence yet. I have done my work, I just need a clue how
to run a script in a script, not get a file as it seems you posted.
I need to run a script at domain.com in a script, period.










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

Date: Sun, 02 May 2004 16:54:48 -0500
From: Tony Curtis <tony_curtis32@_SPAMTRAP_yahoo.com>
Subject: Re: How to call another program
Message-Id: <877jvulck7.fsf@limey.hpcc.uh.edu>

>> On Sun, 02 May 2004 21:45:16 GMT,
>> David Grey <David@Grey.con> said:

> no clue what to look up, and you cannot learn something that
> is not in your existence yet. I have done my work, I just
> need a clue how to run a script in a script,

You are *not* running a "script in a script".

> not get a file as it seems you posted.  I need to run a
> script at domain.com in a script, period.

No, you want to process the response from accessing a URL via
some kind of HTTP request, probably GET.

This is your stumbling block.  You are conflating accessing a
URL with the particular language in which you happened to code
the underlying implementation of that URL.

Or not in German, you want to connect to a webserver and
access something on that server.  (The something happens to be
implemented as a perl program.  That program outputs
something.)  You want to collect what was output and then do
something else.


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

Date: Sun, 02 May 2004 17:56:12 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: How to call another program
Message-Id: <UZCdnV4D2Kvg8wjdRVn-hw@adelphia.com>

David Grey wrote:

> Tony Curtis wrote:
> 
>> No, you want to GET (I assume) the URL above, and process the
>> response in some way.
> 
> No, I just want it to run, period

So what do you think is going to happen when you send a GET request, magic?
The server at the other end *runs* *the* *script* to service the request
you sent.

>> perldoc lwpcook, it has examples of building requests and
>> handling the responses.
> 
> But it had nothing that shows how to run a script. I
> do not want to copy a file, I want to run the script, then
> finish the process.

Send a GET request to the URL - that's been explained several times now, so
I won't repeat it.

To handle that request, the remote server runs the script. If you don't care
about the output, fine - just ignore it or throw it away. The point is, by
fetching the URL yourself, instead of telling the browser to fetch it, your
script can wait for the other one to finish, and then send the browser
whatever output you want to send it.

>> To repeat: you are *not* running a script on another machine,
>> you are accessing a URL and processing its response.
> 
> There goes that german again. Care to give an example that
> (I don't even know what to call it because you say I can't use the
> word run so I call it dlksj)

Now who's being abusive? The people who have been advising you are not
spouting gibberish like "dlksj" just to confuse you. They're using clear,
concise technical terms that you happen to be unfamiliar with. They're
trying hard to help you, and you're being an ungrateful brat in return.
Nice.

> I want to dlksj the script on the domain.com and continue the process.
> Nothing more, nothing less.

Forget about the Location: then, and stop yelling at the kind people who
have been trying to help you. The biggest obstacle in your way right now is
your own stubborn refusal to learn.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: 2 May 2004 14:35:44 -0700
From: myfam@surfeu.fi (Andrew)
Subject: is there something more elegant to convert Dos to unix in subroutine?
Message-Id: <c5826e91.0405021335.bdc470@posting.google.com>

sub toUnixFile() {
  my ($file) = @_;
  my ($temp_file) = $file . ".tmp";
  move($file, $temp_file);
  open(in, "<$temp_file");
  open(out, ">$file");
  while(<in>) {
    chomp;
    ~ s/\r$//;
    print out "$_\n";
  }
  close in;
  close out;
  unlink $temp_file;
  return 0;
}


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

Date: Sun, 02 May 2004 23:47:00 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: is there something more elegant to convert Dos to unix in subroutine?
Message-Id: <c73qfu$hqsum$1@ID-184292.news.uni-berlin.de>

Andrew wrote:
> 
> [ Subject: is there something more elegant to convert Dos to unix
> in subroutine? ]
> 
> sub toUnixFile() {
>   my ($file) = @_;
>   my ($temp_file) = $file . ".tmp";
>   move($file, $temp_file);
>   open(in, "<$temp_file");
>   open(out, ">$file");
>   while(<in>) {
>     chomp;
>     ~ s/\r$//;
>     print out "$_\n";
>   }
>   close in;
>   close out;
>   unlink $temp_file;
>   return 0;
> }

Yes. Subroutines that do what they are supposed to do are always more
elegant.

Please post working code, or rephrase your question.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl



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

Date: Sun, 02 May 2004 21:41:45 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: is there something more elegant to convert Dos to unix in subroutine?
Message-Id: <x73c6iy09y.fsf@mail.sysarch.com>

>>>>> "A" == Andrew  <myfam@surfeu.fi> writes:

  A> sub toUnixFile() {
  A>   my ($file) = @_;
  A>   my ($temp_file) = $file . ".tmp";
  A>   move($file, $temp_file);
  A>   open(in, "<$temp_file");
  A>   open(out, ">$file");
  A>   while(<in>) {
  A>     chomp;
  A>     ~ s/\r$//;
  A>     print out "$_\n";
  A>   }
  A>   close in;
  A>   close out;
  A>   unlink $temp_file;
  A>   return 0;
  A> }

perl -I.bak -pe 'tr/\r\n/\n/s'

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org


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

Date: Sun, 2 May 2004 12:29:21 -0800
From: "Robin" <webmaster @ infusedlight . net>
Subject: need help with security
Message-Id: <c73lo9$a08$1@reader2.nmix.net>

Someone posted an unathorized post to my blog, if someone has time...could
you check this out, http://www.infusedlight.net/robin/temp/blog.txt and
point out the security problems??

Thanks in advance.

--
Regards,
-Robin
--
[ webmaster @ infusedlight.net ]
www.infusedlight.net




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

Date: Sun, 02 May 2004 19:59:43 GMT
From: Kevin Michael Vail <kevin@vaildc.net>
Subject: Re: OSs with Perl installed
Message-Id: <kevin-BD5B2E.15594202052004@news.verizon.net>

In article <slrnc90pku.cfg.jtc@shell.dimensional.com>,
 Jim Cochrane <jtc@shell.dimensional.com> wrote:

> In article <slrnc90nqd.1tf.tadmc@magna.augustmail.com>, Tad McClellan wrote:
> > Jim Cochrane <jtc@shell.dimensional.com> wrote:
> > 
> >> [Warning - topic change]
> >> 
> >> Unfortunately, since MS does not include Perl as a standard component,
> >> it's also true that most computers these days do not have Perl installed.
> >> (I can only think of advantages to MS including Perl with their OS -
> >> can't think of any disadvantages, so I'm can't understand why they don't
> >> do it.  Am I missing something?)
> > 
> > Could they charge more if they did?
> 
> Probably not.  But their OS would probably be taken more seriously by
> developers; 

In case you hadn't noticed, a huge amount of software is already 
available for Windows.  Developers seem to be taking it pretty seriously 
already.  The problem is getting developers to take other platforms 
seriously.

> and it would make it much easier to release Perl-based products
> (either open-source or commercial, or both) for Windows.  It seems this
> would tend to increase the power and thus the popularity of their OS and,
> as a result, reduce the market share they're losing to Linux.  But maybe
> they don't want that.

Microsoft has never played the game this way.  They've always found it 
easier to destroy competitive products than to develop better ones.  If 
Linux were owned by a single company, MS would already have bought that 
company and discontinues Linux.

> I much prefer to develop on UNIX/Linux myself, but I like to develop
> portable software, and having Perl (as well as a Java RE) be a standard
> component of Windows would tend to make this a lot easier.  (Now that MS
> and Sun have "made friends", the JRE situation seems more likely.)
-- 
Kevin Michael Vail | a billion stars go spinning through the night,
kevin@vaildc.net   | blazing high above your head.
 . . . . . . . . . | But _in_ you is the presence that
  . . . . . . . .  | will be, when all the stars are dead. 
 . . . . . . . . . |     (Rainer Maria Rilke)


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

Date: Sun, 2 May 2004 18:05:35 -0000
From: "gnari" <gnari@simnet.is>
Subject: Re: Regexp question...
Message-Id: <c73d6f$44f$1@news.simnet.is>

"Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
news:c73b12$hfqig$1@ID-184292.news.uni-berlin.de...
> Ala Qumsieh wrote:
> >
> >     $select =~ s/\Q||','||\E$//;
>
> - \E right before $ is apparently redundant.

apparently not

gnari






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

Date: Sun, 02 May 2004 23:27:43 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Regexp question...
Message-Id: <c73pbp$hc3kj$1@ID-184292.news.uni-berlin.de>

gnari wrote:
> Gunnar Hjalmarsson wrote:
>>Ala Qumsieh wrote:
>>
>>>    $select =~ s/\Q||','||\E$//;
>>
>>- \E right before $ is apparently redundant.
> 
> apparently not

Okay.. Guess "apparently" was a bad choice of word. ;-)  New try:

- \E right before $ is redundant.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl



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

Date: 2 May 2004 14:03:34 -0700
From: dbsx@yahoo.com (Don Stock)
Subject: Re: single-byte values
Message-Id: <8cf7ae36.0405021303.303a54e1@posting.google.com>

my version of perl is too old and does not contain warnings.pm.  I
used -w and got lots of things like this:

   Argument "r" isn't numeric in ne at compare.pl line 12.

it is indeed complaining about no leading digits

guess I better go update!

don


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

Date: Sun, 02 May 2004 21:22:14 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: single-byte values
Message-Id: <x7fzaiy16i.fsf@mail.sysarch.com>

>>>>> "DS" == Don Stock <dbsx@yahoo.com> writes:

  DS> my version of perl is too old and does not contain warnings.pm.  I
  DS> used -w and got lots of things like this:

  DS>    Argument "r" isn't numeric in ne at compare.pl line 12.

  DS> it is indeed complaining about no leading digits

  DS> guess I better go update!

updating won't fix the warnings. your code does the wrong thing with
strings and numbers regardless of the perl version. use warnings is just
a better way to enable warnings than -w. but -w is supported in all perl
versions and you should either enable it or get a newer perl and use
warnings.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org


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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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 V10 Issue 6504
***************************************


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