[8838] in Perl-Users-Digest
Perl-Users Digest, Issue: 2455 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 29 17:07:31 1998
Date: Wed, 29 Apr 98 14:00: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 Wed, 29 Apr 1998 Volume: 8 Number: 2455
Today's topics:
Re: 1701 days hath September (was: Re: rename funciton) <tchrist@mox.perl.com>
Re: basic email parser? kjj@arf.eng.mcd.mot.com
Re: can't see CPAN page!!! <grinch@whoville.com>
Re: e-mail notifier that will notify by e-mail <rootbeer@teleport.com>
Re: formatting output <tanr@vancpower.com>
Ftp.pm <aaron@soltec.net>
Help to a very beginner <nadassy@ebi.ac.uk>
Re: Help to a very beginner <rootbeer@teleport.com>
Re: How to do sort -u within perl? <rootbeer@teleport.com>
Re: How to find the number of matches in a string <jhi@alpha.hut.fi>
Re: How to find the number of matches in a string (Craig Berry)
Re: Initializing hash with null array: which is best? <ebohlman@netcom.com>
instruction if-elsif-elsif insert on a for loop <info@atig.fr>
Re: instruction if-elsif-elsif insert on a for loop <andy@wonderworks.co.uk>
Re: instruction if-elsif-elsif insert on a for loop (Craig Berry)
Re: instruction if-elsif-elsif insert on a for loop <tanr@vancpower.com>
Re: message board question (brian d foy)
Newbee Perl build problem <rmasse@cnri.reston.va.us>
Re: rename funciton (was: Re: Dummie question) (Richard Bellavance)
Re: Syntax to make my hit counter work? <grinch@whoville.com>
Re: Toggling reverse on and off on in a for loop <rootbeer@teleport.com>
web_store.cgi "locked" tiles@pyramidtile.com
Re: web_store.cgi "locked" <tanr@vancpower.com>
Re: Windows/NT, Perl, and redirection <igor.k@usa.net>
Re: Windows/NT, Perl, and redirection <jwilson@ic.ac.uk>
Re: You people want Perl to be popular? (Craig Berry)
Re: You people want Perl to be popular? (David A. Black)
Re: You people want Perl to be popular? (Kevin Reid)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 29 Apr 1998 16:23:55 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: 1701 days hath September (was: Re: rename funciton)
Message-Id: <6i7k6s$fbo$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Bob Trieger <sowmaster@juicepigs.com> writes:
:Change happens and all you can do is enjoy it.
Tell that to the person getting raped.
Tell that to the official being led out to the guillotine,
or having his hands cut off.
Tell that to the man suffering in agony due to his company's
horrid business practices with hazardous materials.
Tell that to the mother whose kids can buy bombs and hardcore
at the five and dime.
Some change is stupid and destructive. Cultural relativism
is fallacious.
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
This is a serious lapse of taste and judgement but does not imply that they
are stupid, lazy, or incompetent. Indeed, their intelligence, diligence,
and competence in service to the x86 are all too depressingly obvious. --Henry Spencer (henry@zoo.toronto.edu)
------------------------------
Date: 29 Apr 1998 08:56:51 -0700
From: kjj@arf.eng.mcd.mot.com
Subject: Re: basic email parser?
Message-Id: <c0gogxk39ks.fsf@arf.eng.mcd.mot.com>
James Davis <james.davis@corp.home.net> writes:
> Can anyone recommend a PERL module/process for parsing through emails?
Look at the Mail::* modules in CPAN.
http://language.perl.com/info/software.html
--
thx,
kjj
------------------------------
Date: Wed, 29 Apr 1998 12:13:44 -0400
From: "Grinch" <grinch@whoville.com>
Subject: Re: can't see CPAN page!!!
Message-Id: <6i7ilf$jgc@fridge.shore.net>
tw96 wrote in message ...
>hello:
>i want to download some useful perl source through links in perl home page,
>but everytime when i was linked to a site called,for example:
>
>ftp"//ftp.archive.de.uu.net/pub/programming/languages/perl/CPAN/modules/by-
m
>odule/Net/libnet-1.0605.tar.gz
>
>i can only see a blue frame, then an error message, saying that unknown
VRML
>or something like that, my browser is Explore 4.0,
>could somebody tell me how i can get through this problem?
It thinks that .gz files are compressed VRML worlds, so it's uncompressing
them and trying to display what it finds. Of course, it can't, so it
complains about it.
Right click on the links and choose "save link as" to get the file instead.
-grinch
--
-----
"Yes, I'm paranoid, but that doesn't mean
no one's out to get me." - me
Sherm Pendley
grinch@whoville.com
http://www.whoville.com
------------------------------
Date: Wed, 29 Apr 1998 18:38:07 GMT
From: Tom Phoenix <rootbeer@teleport.com>
To: Phillip <phillip@javanet.com>
Subject: Re: e-mail notifier that will notify by e-mail
Message-Id: <Pine.GSO.3.96.980429113130.19984I-100000@user2.teleport.com>
On Wed, 29 Apr 1998, Phillip wrote:
> Could Anyone tell me if there is software that will monitor an e-mail
> address by poping it or just downloading the headers. and then every so
> often like every 3 hours or at specified times have the program send an
> e-mail message with the message something like this "You currently have #
> messages in your mailbox."
The answer hasn't changed since you asked this question two days ago. If
you won't use the answers you've already been given, why should we answer
you again?
Are you really asking, "Won't somebody please write this software for me?"
People here are glad to help you to learn how to write it yourself; if
you're trolling for a sucker who will do your work for you, that's another
matter.
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 29 Apr 1998 14:37:47 -0400
From: Richard Tan <tanr@vancpower.com>
To: Jeff McCreary <jeffmcc@mindspring.com>
Subject: Re: formatting output
Message-Id: <3547737A.C1AACC0C@vancpower.com>
Jeff McCreary wrote:
> I want to take an element out of an array and print it in a currency
> format. How can I do this?
>
> thanks
I post a simular message a few days ago but didn't get any good solution. I end up writing a sub
myself. You're welcome to use it or modify to fit your needs.
sub FormatCurrency {
$Num = shift(@_);
$Dollar = int($Num);
$Cent = int(($Num - $Dollar + 0.005) * 100); # also roundup the cents
$Return = "";
$I = length($Dollar);
for ( $I; $I > 0; $I -= 1) {
if ( ($I % 3) eq 0 ) { $Return .= ","; }
$Return .= substr($Dollar, length($Dollar) - $I, 1);
}
$Return =~ s/^,//; # strip the leading comma
return "\$$Return.$Cent";
}
To call the sub:
print &FormatCurrency ("5830.568")."\n"; This will print $5,830.75
I hop you can use it!
--
Richard Tan
Virginia Power
tanr@vancpower.com
------------------------------
Date: Wed, 29 Apr 1998 11:09:33 -0500
From: "Aaron" <aaron@soltec.net>
Subject: Ftp.pm
Message-Id: <6i7j9f$n0r$1@hirame.wwa.com>
Hi,
I have been using the FTP module for a little while now and I think it does
the job like a champ. However, I need to be able to change the file
permissions of the uploaded files and I don't see anything like a chmod
command in the documentation.
Anyone know of a way around this?
Aaron
------------------------------
Date: Wed, 29 Apr 1998 17:43:09 +0100
From: Katalin Nadassy <nadassy@ebi.ac.uk>
Subject: Help to a very beginner
Message-Id: <3547589C.A07C1AB1@ebi.ac.uk>
Hello,
I am new to Perl and would like to ask your help in solving the
following problem.
I have a large text file of which I would like to access only parts at a
time (say from section 1 to section2...etc). I'd like to use regular
expression to search for Pattern A and from Pattern A manipulate the
data until Pattern B is found. I read the file with 'while
($line=<FILE>)' and would try to match something like ' if
$line=~/patternA/ ...do various manipulations but I don't know how I can
search to say that when $line=~/patternB/ then exit from here and
begin something different.
Could you please help me on this problem? Any help and advice is greatly
appreciated.
Many thanks,
Katalin
------------------------------
Date: Wed, 29 Apr 1998 18:18:46 GMT
From: Tom Phoenix <rootbeer@teleport.com>
To: Katalin Nadassy <nadassy@ebi.ac.uk>
Subject: Re: Help to a very beginner
Message-Id: <Pine.GSO.3.96.980429105728.19984E-100000@user2.teleport.com>
On Wed, 29 Apr 1998, Katalin Nadassy wrote:
> I have a large text file of which I would like to access only parts at a
> time (say from section 1 to section2...etc). I'd like to use regular
> expression to search for Pattern A and from Pattern A manipulate the
> data until Pattern B is found.
It sounds as if you want the cool, useful, but often-confusing "scalar
range" ("..") operator.
while (<>) {
if (/patternA/../patternB/) {
chomp;
print "One line in that range is '$_'\n";
}
}
If you don't understand that operator - and most people don't - you can do
(almost) the same thing "the hard way", like this.
my $within_range = 0; # A true/false flag
while (<>) {
if ($within_range) {
$within_range = 0 if /patternB/;
} else {
$within_range = 1 if /patternA/;
}
if ($within_range) {
chomp;
print "One line in that range is '$_'\n";
}
}
It's "almost" the same primarily because the first program counts the
/patternB/ line as being within range, while the second doesn't. (Trying
to make the second one work the same way as the first is difficult, in an
enlightening sort of way. :-) Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 29 Apr 1998 20:39:46 GMT
From: Tom Phoenix <rootbeer@teleport.com>
To: David Lee Lambert <davidl@pfaffben.user.msu.edu>
Subject: Re: How to do sort -u within perl?
Message-Id: <Pine.GSO.3.96.980429133847.19984Q-100000@user2.teleport.com>
On Wed, 29 Apr 1998, David Lee Lambert wrote:
> What's a simple way to do the equivalent of 'sort -u' on a list in perl?
The Perl FAQ has some information on this. Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 29 Apr 1998 23:15:54 +0300
From: Jarkko Hietaniemi <jhi@alpha.hut.fi>
Subject: Re: How to find the number of matches in a string
Message-Id: <oeed8e0o03p.fsf@alpha.hut.fi>
> $count++ while $string =~ m/pattern/g;
>
> $count = () = $string =~ m/pattern/g;
There is of course the point that the codes are not exactly
functionally equivalent.
[clickety click]
Now they are.
for ( $count = 0; $string =~ m/pattern/g; $count++ ) { }
$count = () = $string =~ m/pattern/g;
--
$jhi++; # http://www.iki.fi/~jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
------------------------------
Date: 29 Apr 1998 16:13:47 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: How to find the number of matches in a string
Message-Id: <6i7jjr$r72$2@marina.cinenet.net>
Mark-Jason Dominus (mjd@op.net) wrote:
: In article <35471A44.19F3@cse.bridgeport.edu>,
: Seong Y. Kim <seong@cse.bridgeport.edu> wrote:
: >I want my program able to tell me the number of matches within a string.
:
: $count++ while $string =~ m/pattern/g;
Easier: $count = () = $string =~ m/pattern/g;
The list context on the right-hand assignment causes m//g to return a
list of all matches, and the scalar left-hand assignment then transforms
this into the length of the list of matches.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Wed, 29 Apr 1998 18:16:24 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: Initializing hash with null array: which is best?
Message-Id: <ebohlmanEs6tFC.9Eu@netcom.com>
Bart Lateur <bart.mediamind@tornado.be> wrote:
: Zenin wrote:
: > BTW, when you CC people your followups, it's nice to mention
: > it at least in the email so one doesn't waste time replying
: > twice (see above). Thanks.
: Consider yourself warned. ;-)
: Can't you just keep the message you send, with some copy/paste you can
: easily create a newsgroup post as well.
1) That still involves extra work (not the least of which is going
through your saved messages looking to see which ones haven't shown up on
Usenet in a reasonable amount of time).
2) You might want to word a direct reply differently from a newsgroup
followup. When you're addressing your remarks to a single person, you can
be a little more terse or even cryptic because you can assume more shared
context (i.e. "being on the same wavelength") than when addressing them to
an audience. A reply that makes perfect sense to the specific person who
asked a question could easily come off as confusing to others.
------------------------------
Date: Wed, 29 Apr 1998 17:54:51 +0200
From: "Stiphanie gaye" <info@atig.fr>
Subject: instruction if-elsif-elsif insert on a for loop
Message-Id: <6i7im5$obn$1@minus.oleane.net>
hello!
is it possible to insert an instruction if-elsif-elsif in a "for" loop?
example :
for( ; ; ){
if ( ){ };
elsif ( ) { };
elsif ( ) { };
}
thank you very much to answer me! :)
stephanie gaye
info@atig.fr
------------------------------
Date: Wed, 29 Apr 1998 17:09:04 +0100
From: Andy Armstrong <andy@wonderworks.co.uk>
Subject: Re: instruction if-elsif-elsif insert on a for loop
Message-Id: <fs7avGAgC1R1Ew0N@wndrwrks.demon.co.uk>
In article <6i7im5$obn$1@minus.oleane.net>, Stiphanie gaye
<info@atig.fr> writes
>hello!
>
>is it possible to insert an instruction if-elsif-elsif in a "for" loop?
>example :
>for( ; ; ){
>if ( ){ };
>elsif ( ) { };
>elsif ( ) { };
>}
>
>thank you very much to answer me! :)
Yes, and any other variations you might think of :-)
--
Andy Armstrong, Wonderworks, http://www.wonderworks.co.uk
------------------------------
Date: 29 Apr 1998 16:22:21 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: instruction if-elsif-elsif insert on a for loop
Message-Id: <6i7k3t$r72$3@marina.cinenet.net>
Stiphanie gaye (info@atig.fr) wrote:
: is it possible to insert an instruction if-elsif-elsif in a "for" loop?
: example :
: for( ; ; ){
: if ( ){ };
: elsif ( ) { };
: elsif ( ) { };
: }
Sure; you can insert just about anything in the block of a for loop. Why
not just try it and see? Do note, though, that you should get rid of the
semicolons at the end of the if and elsif lines.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Wed, 29 Apr 1998 14:51:10 -0400
From: Richard Tan <tanr@vancpower.com>
To: "Stiphanie gaye" <info@atig.fr>
Subject: Re: instruction if-elsif-elsif insert on a for loop
Message-Id: <3547769E.57BD67CD@vancpower.com>
Stiphanie gaye wrote:
> hello!
>
> is it possible to insert an instruction if-elsif-elsif in a "for" loop?
> example :
> for( ; ; ){
> if ( ){ };
> elsif ( ) { };
> elsif ( ) { };
> }
>
> thank you very much to answer me! :)
>
> stephanie gaye
> info@atig.fr
I don't see why not. All you have to do is write something simple to test:
for ( $I=6; $I > 0; $I -= 1) {
if ( ($I % 3) eq 0 ) { print "$I dividable by 3\n"; }
elsif ( ($I % 5) eq 0 ) { print "$I dividable by 5\n"; }
elsif ( ($I % 2) eq 0 ) { print "$I devidable by 2\n"; }
else { print "$I is not dividable by 2, 3, or 5\n"; }
}
--
Richard Tan
Virginia Power
tanr@vancpower.com
------------------------------
Date: Wed, 29 Apr 1998 13:20:44 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: message board question
Message-Id: <comdog-ya02408000R2904981320440001@news.panix.com>
Keywords: from just another new york perl hacker
In article <3546D1BA.5ECABC3C@idkconsulting.com>, Matthew Wheeler <idk@idkconsulting.com> posted:
>I didn't want to waste time reading about newsgroups when I knew I'd only be
>here a day or two.
"i was only going to fly the plane a little ways..."
"i only wanted to weld a joint once..."
"i was only wiring one house..."
"i didn't plan on being in Iraq long..."
"i was only going to make /bin/sh setuid root for a minute..."
"i was only writing one CGI program..."
oh, thanks for being a leech.
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers <URL:http://www.pm.org>
------------------------------
Date: 29 Apr 1998 12:36:59 -0400
From: Roger Masse <rmasse@cnri.reston.va.us>
Subject: Newbee Perl build problem
Message-Id: <64pvi0eg9g.fsf@nobot.CNRI.Reston.Va.US>
I'm encoutering a problem building Perl 5.004 on solaris 2.6 sparc using
gcc 2.8.1 I've chosen all the defaults (except compiler = gcc) for
Configure. Can anyone shed any light on the subject? Thanks.
-- successful parts of the build omitted --
Making IO (dynamic)
Can't locate ExtUtils/Liblist.pm in @INC (@INC contains: ../../lib
/usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .)
at (eval 15) line 3.
Warning: No Makefile!
make[1]: Entering directory `/var/local/src/perl5.004_04/ext/IO'
make[1]: *** No rule to make target `config'. Stop.
make[1]: Leaving directory `/var/local/src/perl5.004_04/ext/IO'
make config failed, continuing anyway...
make[1]: Entering directory `/var/local/src/perl5.004_04/ext/IO'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/var/local/src/perl5.004_04/ext/IO'
make: *** [lib/auto/IO/IO.so] Error 2
Regards,
Roger E. Masse, Systems Engineer
Corporation for National Research Initiatives
1895 Preston White Drive, Suite 100
Reston, Virginia, USA 20191
rmasse@CNRI.Reston.VA.US
To find out why Python rules,
see: <http://www.python.org/>
------------------------------
Date: 29 Apr 1998 11:55:07 -0400
From: charlot@CAM.ORG (Richard Bellavance)
Subject: Re: rename funciton (was: Re: Dummie question)
Message-Id: <6i7igr$cif@ocean.CAM.ORG>
In article <tEG11.16$al1.199306@newsread.com>,
John Porter <jdporter@min.net> wrote:
>
>Won't You Take Me To
>
>Funciton
>
Really, really sorry for the S/N ratio, but I have to say:
ROTFLMAO !!!!
Richard, who can't stop grinning now...
--
Richard Bellavance |
| "Rien n'est plus imminent que l'impossible."
charlot@cam.org | - Victor Hugo
http://www.cam.org/~charlot/ |
------------------------------
Date: Wed, 29 Apr 1998 12:22:32 -0400
From: "Grinch" <grinch@whoville.com>
Subject: Re: Syntax to make my hit counter work?
Message-Id: <6i7j5t$k0c@fridge.shore.net>
Kevin Reid wrote in message
<1d88ljw.1jh1ri3dtfotbN@slip-32-100-246-240.ny.us.ibm.net>...
>But that would also count requests for images and other such things.
...which makes it just about as accurate as any other hit counter.
-grinch
--
-----
"Yes, I'm paranoid, but that doesn't mean
no one's out to get me." - me
Sherm Pendley
grinch@whoville.com
http://www.whoville.com
------------------------------
Date: Wed, 29 Apr 1998 20:55:21 GMT
From: Tom Phoenix <rootbeer@teleport.com>
To: Lachlan Dunlop <lach@lach.net>
Subject: Re: Toggling reverse on and off on in a for loop
Message-Id: <Pine.GSO.3.96.980429135009.19984T-100000@user2.teleport.com>
On Wed, 29 Apr 1998, Lachlan Dunlop wrote:
> is there a way to put the word reverse into a variable name say
> $direction = "reverse" and then the code look like
>
> my $i;
>
> for $i ($direction @bank) {
> print $i;
> }
>
> So when I want it reversed $direction ="reverse" else $direction = ""
Nice try! Here's a method that will actually work.
sub ordinary { @_ }
sub backwards { reverse @_ }
if (0.5 < rand) {
$direction = \&ordinary;
} else {
$direction = \&backwards;
}
for (&$direction(1..5)) {
print "$_\n";
}
Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 29 Apr 1998 10:49:40 -0600
From: tiles@pyramidtile.com
Subject: web_store.cgi "locked"
Message-Id: <6i7i6k$sle$1@nnrp1.dejanews.com>
Can anyone see whats wrong?
I just made my first html cgi form in html I wrote:<FORM ACTION="/Web_store/
web_store.cgi" METHOD=GET>.
When I click on the link to get the results of what I typed into the form I
made, I receive these two lines:
******
Content-type: text/html
I could not open the lock file
*******
The url were my fill out form is:
http://www.pyramidtile.com/testing_cgi.htm
Thanks
Please email me directly if you can:)
Bill Furner
tiles@pyramidtile.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Wed, 29 Apr 1998 14:54:14 -0400
From: Richard Tan <tanr@vancpower.com>
To: tiles@pyramidtile.com
Subject: Re: web_store.cgi "locked"
Message-Id: <35477756.40D2AABB@vancpower.com>
tiles@pyramidtile.com wrote:
> Can anyone see whats wrong?
> I just made my first html cgi form in html I wrote:<FORM ACTION="/Web_store/
> web_store.cgi" METHOD=GET>.
>
> When I click on the link to get the results of what I typed into the form I
> made, I receive these two lines:
> ******
> Content-type: text/html
>
> I could not open the lock file
> *******
>
> The url were my fill out form is:
> http://www.pyramidtile.com/testing_cgi.htm
>
> Thanks
> Please email me directly if you can:)
> Bill Furner
> tiles@pyramidtile.com
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/ Now offering spam-free web-based newsreading
Can you send the whole program?
--
Richard Tan
Virginia Power
tanr@vancpower.com
------------------------------
Date: Wed, 29 Apr 1998 12:39:30 -0700
From: "Igor Krivokon" <igor.k@usa.net>
Subject: Re: Windows/NT, Perl, and redirection
Message-Id: <6i7vfa$o2r$1@news.ncal.verio.com>
Michael Genovese wrote in message <35473240.18D@slpma8.ed.ray.com>...
>A co-worker learning perl has it installed on his Windows/NT box.
>
>The other day, when I was helping him with a simple perl problem,
>we noticed that redirection doesn't work quite the same as in UNIX.
>
>For instance, the following
>######################
>foreach $A (@ARGV) {
> printf("$A\n");
>}
>######################
>
>WILL redirect under UNIX (foo arg1 arg2 arg3 ... > www);
>but NOT under Windows/NT. Can anyone tell me why, or suggest
>a fix ?
>
1) it DOES work under NT
2) be careful - print and printf are two different functions
Regards,
Igor Krivokon
<igor.k@usa.net>
------------------------------
Date: 29 Apr 1998 16:23:39 GMT
From: "Jeff Wilson" <jwilson@ic.ac.uk>
Subject: Re: Windows/NT, Perl, and redirection
Message-Id: <01bd738b$205a2930$d53ec69b@leicester>
for $a (@ARGV) { print "$a\n"; }
... works OK on my WinNT machine - when run from a command prompt. I'm
using the Activeware port. Same result on Ultrix UNIX and DU UNIX.
--
Jeff Wilson
London - UK
Michael Genovese <mikeg@slpma8.ed.ray.com> wrote in article
<35473240.18D@slpma8.ed.ray.com>...
> A co-worker learning perl has it installed on his Windows/NT box.
>
> The other day, when I was helping him with a simple perl problem,
> we noticed that redirection doesn't work quite the same as in UNIX.
>
> For instance, the following
> ######################
> foreach $A (@ARGV) {
> printf("$A\n");
> }
> ######################
>
> WILL redirect under UNIX (foo arg1 arg2 arg3 ... > www);
> but NOT under Windows/NT. Can anyone tell me why, or suggest
> a fix ?
>
>
>
>
> --
> Mike Genovese
>
------------------------------
Date: 29 Apr 1998 16:08:01 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: You people want Perl to be popular?
Message-Id: <6i7j91$r72$1@marina.cinenet.net>
David A. Black (dblack@saturn.superlink.net) wrote:
: Chris Lambrou <archive@cglis.com> writes:
: >Well?
:
: No, actually I wanted everyone to stop using it as of this
: morning (except me and my imaginary playmates, of course).
: But gosh, you talked me out of it.
Actually, I still want it to be unpopular -- wildly unpopular, loathed
and reviled. That way, I can get rich being one of the few brave
programmers willing to maintain all those Perl apps out there that
everyone else is too horrified to deal with.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Wed, 29 Apr 1998 11:36:22 EDT
From: dblack@saturn.superlink.net (David A. Black)
Subject: Re: You people want Perl to be popular?
Message-Id: <6i7hdm$e1d$1@earth.superlink.net>
Chris Lambrou <archive@cglis.com> writes:
>Well?
No, actually I wanted everyone to stop using it as of this
morning (except me and my imaginary playmates, of course).
But gosh, you talked me out of it.
David Black
dblack@saturn.superlink.net
------------------------------
Date: Wed, 29 Apr 1998 12:08:46 -0400
From: kpreid@ibm.net (Kevin Reid)
Subject: Re: You people want Perl to be popular?
Message-Id: <1d88t75.16la9373easowN@slip166-72-108-69.ny.us.ibm.net>
"Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print> wrote:
> We want Perl to be useful. Popularity ain't all it's cracked up to be.
Being popular helps it be useful, because more people would be writing
scripts, modules, etc...
--
Kevin Reid. | Macintosh.
"I'm me." | Think different.
------------------------------
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 2455
**************************************