[12689] in Perl-Users-Digest
Perl-Users Digest, Issue: 98 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 9 23:07:24 1999
Date: Fri, 9 Jul 1999 20:05:07 -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 Fri, 9 Jul 1999 Volume: 9 Number: 98
Today's topics:
Re: apache webserver question <elaine@chaos.wustl.edu>
Re: Assigning args with regular expressions (Ronald J Kimball)
Re: can perl run overnight? (Abigail)
Re: can perl run overnight? <elaine@chaos.wustl.edu>
Changing case local-specifically <neutron@bamboo.verinet.com>
Re: Chatpro 2.5 glitch... Help (Abigail)
Re: creating stock charts (Abigail)
Re: FAQ 5.7: How can I use a filehandle indirectly? (Michael Rubenstein)
Re: File Upload that only works if you repost data (Abigail)
Formatting a number to a currency string <docdata@mustangone.com>
Re: Getting very irregular single 'name' field into fir (Abigail)
Re: Hacker fouls off All-Star site (Abigail)
Re: Help with .pl script execution problem (Abigail)
Re: HELP! how do I run remsh commands from a script? (Abigail)
Loop - how to <jingker.cheng@smtp.dbtel.com.tw>
Re: OLE & Excel <markmclean@my-deja.com>
Re: Pattern match counting (Ronald J Kimball)
Re: Perl & mySQL - Please Help! <elaine@chaos.wustl.edu>
Re: Perl & mySQL - Please Help! (Abigail)
Re: Receiving binaries (Tom McGee)
Re: Speed Differences Perl v. Cold Fusion <elaine@chaos.wustl.edu>
The "Camel Book" <streaking_pyro@my-deja.com>
Use of uninitialized value (Steven W. Peters)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 9 Jul 1999 20:29:12 -0500
From: elaine ashton <elaine@chaos.wustl.edu>
Subject: Re: apache webserver question
Message-Id: <Pine.GSO.4.05.9907092028210.18443-100000@chaos.wustl.edu>
> I am looking into making a perl program, and this question has come to
> mind:
> Is it possible to setup apache in a way, that when any file from a
> specific dir is accessed, the request is forwarded to a perl program?
While your question doesn't quite parse for me, you would do well to go
read http://perl.apache.org/
enjoy.
e.
------------------------------
Date: Fri, 9 Jul 1999 22:41:25 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Assigning args with regular expressions
Message-Id: <1dup3cm.1df44jj1c2hhcnN@p58.tc2.state.ma.tiac.com>
theoddone33 <anonymous@web.remarq.com> wrote:
> So the $1 $2, etc variables keep their values even outside
> the regular expression, eh? Thanks!
The $1 $2 etc variables *only* have their values outside the regular
expression. Inside the regular expression, you have to use \1 \2 etc.
(You can interpolate $1 $2 etc in a regular expression, but they'll
still have their values from the previous successful match at that
point.)
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 9 Jul 1999 20:29:31 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: can perl run overnight?
Message-Id: <slrn7od8f5.h7.abigail@alexandra.delanet.com>
Jeff Isenhart (jeffisen@inreach.com) wrote on MMCXXXVIII September
MCMXCIII in <URL:news:37863A4A.AE4D1F35@inreach.com>:
`` I have a perl script I want ran each night. (It reads web pages and
`` updates my own) Is there anyway to make this run on it own or am I stuck
`` with running it myself daily?
cron
Abigail
--
sub J::FETCH{Just }$_.='print+"@{[map';sub J::TIESCALAR{bless\my$J,J}
sub A::FETCH{Another}$_.='{tie my($x),$';sub A::TIESCALAR{bless\my$A,A}
sub P::FETCH{Perl }$_.='_;$x}qw/J A P';sub P::TIESCALAR{bless\my$P,P}
sub H::FETCH{Hacker }$_.=' H/]}\n"';eval;sub H::TIESCALAR{bless\my$H,H}
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Fri, 9 Jul 1999 20:31:34 -0500
From: elaine ashton <elaine@chaos.wustl.edu>
Subject: Re: can perl run overnight?
Message-Id: <Pine.GSO.4.05.9907092030290.18443-100000@chaos.wustl.edu>
> > I have a perl script I want ran each night. (It reads web pages and
> > updates my own) Is there anyway to make this run on it own or am I stuck
> > with running it myself daily?
Unix: 'man crontab'
NT: Try the AT utility or any number of batch schedulers out on the net.
e.
------------------------------
Date: Sat, 10 Jul 1999 02:45:52 GMT
From: Jack Applin <neutron@bamboo.verinet.com>
Subject: Changing case local-specifically
Message-Id: <Atyh3.82$xEh.179233792@news.frii.net>
I'm trying to change the case of a string. That is, "Jack" would
become "jACK". Here's my first attempt:
$_ = "Jack\n";
tr/a-zA-Z/A-Za-z/;
print;
Of course, this will fail for non-ASCII letters such as ö.
This seems to work:
use locale;
$_ = "AeÎö\n";
s/\w/$& ne uc($&) ? uc($&) : lc($&)/ge;
print;
I don't like it. It executes code for each \w character found,
which can't be too fast. I'd like to do one whopping tr for the
entire string, but constructing the tr and eval'ing it would be ugly.
Any ideas?
-Jack Applin
neutron@verinet.com
------------------------------
Date: 9 Jul 1999 21:00:07 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Chatpro 2.5 glitch... Help
Message-Id: <slrn7oda88.h7.abigail@alexandra.delanet.com>
John Curry (kuzzero@nconnect.net) wrote on MMCXXXVIII September MCMXCIII
in <URL:news:7m58uh$cu2@enews2.newsguy.com>:
,,
,, I have tried several approaches myself, but I am an amatuer at perl
,, programing, I am including the access_control.pl and the main chat.pl and
,, please, don't just give me hints how to fix it, actually type out the fix
,, and show me where to insert it, and what language to replace.
[1666 lines deleted]
In the old days, people would be tortured with hot pokers, then put
into an cage and hang from a church tower for the birds to eat.
Perhaps we should reinstall that.
Abigail
--
perl -wlpe '}$_=$.;{' file # Count the number of lines.
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 9 Jul 1999 21:20:45 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: creating stock charts
Message-Id: <slrn7odbf7.h7.abigail@alexandra.delanet.com>
baga@gmx.net (baga@gmx.net) wrote on MMCXXXVIII September MCMXCIII in
<URL:news:37863e66.2655718@news.techfak.uni-kiel.de>:
[]
[] I want to write a program that takes my saved data and create charts
[] out of it. Does someone know if there are already perl programs/moduls
[] available which I can use to start? I want to use that for stocks.
The latest TPJ had an interesting article about using gnuplot.
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sat, 10 Jul 1999 02:24:07 GMT
From: miker3@ix.netcom.com (Michael Rubenstein)
Subject: Re: FAQ 5.7: How can I use a filehandle indirectly?
Message-Id: <3786ae62.10859124@nntp.ix.netcom.com>
On 9 Jul 1999 18:16:36 -0700, Tom Christiansen
<tchrist@mox.perl.com> wrote:
>Um, "thusly" isn't a word. "Thus" is already an adverb.
As is "thusly," at least according to the Oxford English
Dictionary. It means the same as "thus."
--
Michael M Rubenstein
------------------------------
Date: 9 Jul 1999 21:22:55 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: File Upload that only works if you repost data
Message-Id: <slrn7odbj0.h7.abigail@alexandra.delanet.com>
Nick Sanders (nick.sanders@lineone.net) wrote on MMCXXXVII September
MCMXCIII in <URL:news:37847969.A3034AB6@lineone.net>:
?? I'm running Apache locally on windows and am trying to upload a file
?? using CGI.pm when I submit the form I get a internal server error and
?? the error log says -
?? 'Premature end of script headers: d:/msd/cgi-bin/newsletter.pl'
??
?? Has any one any ideas ?
Yes. Use -w and 'use strict;' to get an actual Perl error. It's kind
of rude to expect a newsgroup to debug your code if you don't even
supply an error message.
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Fri, 09 Jul 1999 21:27:28 -0400
From: Doc Data <docdata@mustangone.com>
Subject: Formatting a number to a currency string
Message-Id: <3786A180.30332D72@mustangone.com>
How can I format a number to a string in currency format?
Thanks
--
Doc Data, Webmaster for...
. M1 Hobbies (http://www.M1Hobbies.com)
. Food Court Central (http://www.FoodCourtCentral.com)
. Aeromaster Decals (http://www.AeroMaster.com)
. Kendall Model Company (http://www.KMCMiami.com)
. Sumner Class Destroyers at DOL
(http://www.plateau.net/usndd/classumnr.html)
. TholianWeb Services (http://www.TholianWeb.com)
. MustangOne (http://www.MustangONE.com)
------------------------------
Date: 9 Jul 1999 21:24:52 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Getting very irregular single 'name' field into first/last name for credit card gateway -- what hit rate is possible?
Message-Id: <slrn7odbmt.h7.abigail@alexandra.delanet.com>
Stephen Benson (stephenb@scribendum.win-uk.net) wrote on MMCXXXVIII
September MCMXCIII in <URL:news:7m55tj$agd$1@plutonium.compulink.co.uk>:
$$ I have to come up with a perl script that takes a very variable name field
$$ and turns it into a coherent first/lastname pair. My feeling is that even if
$$ I can come up with a solution, it can never get it right more that 9.5/10
$$ times (verry optimisdic). Even if you don't feel like offering a solution,
$$ and opinion on this would be useful.
So, what's your Perl question?
Abigail
--
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 9 Jul 1999 21:27:11 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Hacker fouls off All-Star site
Message-Id: <slrn7odbr7.h7.abigail@alexandra.delanet.com>
Uri Guttman (uri@sysarch.com) wrote on MMCXXXVIII September MCMXCIII in
<URL:news:x7hfndstxc.fsf@home.sysarch.com>:
!! >>>>> "JK" == John Klassa <klassa@aur.alcatel.com> writes:
!!
!! JK> Our very own Chris Nandor?
!!
!! yes. he is very infamous now. it made the boston globe, ap wire, local
!! tv news, slashdot, etc. jon orwant was interviewed about it too.
Damned Boston Perl Mongers. They just couldn't deal with the glamour
Kevin was getting these weeks and had to come with something to detract
the attention. I bet Pudge got himself caught on purpose. ;)
Abigail
--
perl -we '$_ = q ;4a75737420616e6f74686572205065726c204861636b65720as;;
for (s;s;s;s;s;s;s;s;s;s;s;s)
{s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 9 Jul 1999 21:31:29 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Help with .pl script execution problem
Message-Id: <slrn7odc3b.h7.abigail@alexandra.delanet.com>
fvultee@my-deja.com (fvultee@my-deja.com) wrote on MMCXXXVIII September
MCMXCIII in <URL:news:7m54o5$cvm$1@nnrp1.deja.com>:
&&
&& I reinstalled my web software, Sambar Web Server,
&& and reconfigured it, and now I have the following problem. Instead of
&& the webpage calling mailit.pl and processing the listserv request, it
&& instead displays the text of the script in the browser.
And what makes you think this is a Perl problem? It isn't the poor
little programs fault you reconfigured the webserver, now is it?
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 9 Jul 1999 21:29:12 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: HELP! how do I run remsh commands from a script?
Message-Id: <slrn7odbv1.h7.abigail@alexandra.delanet.com>
Ranganath Sudarshan (tsranga@leland.Stanford.EDU) wrote on MMCXXXVIII
September MCMXCIII in <URL:news:Pine.GSO.3.96.990709084516.13410A-100000@myth7.Stanford.EDU>:
"" Does anyone know how to run the UNIX command 'remsh' from within a perl
"" script (like 'remsh bob -l root -n "file1 /file2" ')?
Noone knows. There are rumours that the manual will bring enlightment,
but noone ever reads them. So we just keep stumbling in the dark.
"" And a more general question -- is there a general way to execute UNIX
"" commands in Perl(like cp, ls, etc), or do we have to use canned
"" Perl-specific functions or pre-written modules?
It's better to write them in Java.
Abigail
--
srand 123456;$-=rand$_--=>@[[$-,$_]=@[[$_,$-]for(reverse+1..(@[=split
//=>"IGrACVGQ\x02GJCWVhP\x02PL\x02jNMP"));print+(map{$_^q^"^}@[),"\n"
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sat, 10 Jul 1999 10:26:05 +0800
From: jingker cheng <jingker.cheng@smtp.dbtel.com.tw>
Subject: Loop - how to
Message-Id: <3786AF3C.BB9BBD52@smtp.dbtel.com.tw>
Hello All :
I want to use PERL writing a loop to retrive my FORM data...
Following is my question:
From the previous FORM, I got two sets of data,say:
aaa1=5,bbb1=3,ccc1=6,ddd1=0
aaa2=1,bbb2=1,ccc2=5,ddd2=7
I want to print them in a loop. Can anyone tell me how to retrive ?
Thanks....
By th way, if I want to INSERT them into an Informix Database ( I can
use
DBI,DBD to connect the database engine), the procedure is ......
Jung-Hui Cheng
cheng@dbtel.com.tw
------------------------------
Date: Sat, 10 Jul 1999 02:13:55 GMT
From: Mark McLean <markmclean@my-deja.com>
Subject: Re: OLE & Excel
Message-Id: <7m6a8t$r5m$1@nnrp1.deja.com>
In article <7m3ivc$soi$1@nnrp1.deja.com>,
hemant_gandhi@my-deja.com wrote:
> Hi all,
> I am processing excel file thru a perl program. reading the excel file and loading it in the database. can any one tell me how to find out the
> number of sheets in the excel file ?
>
> Thanks,
> Hemant.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>
Hi Hemant
I'm assuming you can look at the file and see but you want the file to
read it itself, or have Pearl read it.
I know that VBA in excel can do that if you need or can use the
excel file itself to do it. Or have another file that will read any file
that you point it to. If so, I think this will help.
Sub count_sheets()
Dim sheet_total
sheet_total = Worksheets.Count
MsgBox sheet_total
End Sub
Remember there may be modules Dialog and chart that can
be counted by taking the "Work" out of "worksheet".
Hope that helps or gets ya closer.
--
Golf software for keeping
--
Golf software for keeping scores and handicaps.
Simple quick and correct.
http://hometown.aol.com/markmclean/private/golf.htm
Free trial!
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Fri, 9 Jul 1999 22:41:26 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Pattern match counting
Message-Id: <1dup4rh.hsajife52bwzN@p58.tc2.state.ma.tiac.com>
Greg Bacon <gbacon@itsc.uah.edu> wrote:
> Try reading my post next time. Here, I'll help you.
>
> > You're ignoring
> >
> > If LIMIT is unspecified or zero, trailing null fields are stripped
> > (which potential users of C<pop()> would do well to remember).
> >
> > to focus in on questionable if not buggy behavior of split() to make
> > broad generalizations about the C<$scalar = () = ...> syntax.
>
> I'll help you again.
>
> > [same]
>
> Once more to be sure.
>
> > [same]
>
> Did you get that?
>
Are you trying to make a point, or are you just wanking off by repeating
yourself over and over again?
Being a patronizing ass will not convince anyone that you are right.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Fri, 9 Jul 1999 20:40:03 -0500
From: elaine ashton <elaine@chaos.wustl.edu>
Subject: Re: Perl & mySQL - Please Help!
Message-Id: <Pine.GSO.4.05.9907092033160.18443-100000@chaos.wustl.edu>
> Can anyone give me some examples on adding a value to a mySQL database,
> then getting that value? Please help! Any examples would be great!
*boggle* mySQL is so heavily documented I find it hard to believe you
could have possibly missed it.
elaine@chaos src/mysql-3.22.22/Docs> ls
INSTALL-BINARY Makefile.in manual.texi mysql.info
Img/ include.texi manual.txt texi2html*
Makefile manual.html manual_toc.html
Makefile.am manual.ps mysql-for-dummies
the manual itself is quite extensive and comes in several formats.
Also, it is available on the web at
http://www.mysql.com/doc.html
and
http://www.symbolstone.org/technology/perl/DBI/index.html
and you might try
http://www.perl.com/
*sigh*
e.
------------------------------
Date: 9 Jul 1999 21:50:21 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Perl & mySQL - Please Help!
Message-Id: <slrn7odd6m.h7.abigail@alexandra.delanet.com>
nick (nick@auger.net) wrote on MMCXXXVIII September MCMXCIII in
<URL:news:378658E2.527096BC@auger.net>:
;; Can anyone give me some examples on adding a value to a mySQL database,
;; then getting that value? Please help! Any examples would be great!
That's not a Perl question, is it?
Abigail
--
perl -weprint\<\<EOT\; -eJust -eanother -ePerl -eHacker -eEOT
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sat, 10 Jul 1999 01:18:55 GMT
From: tamcgee@home.com (Tom McGee)
Subject: Re: Receiving binaries
Message-Id: <tamcgee-0907992114390001@cc1017583-a.union1.nj.home.com>
In article <slrn7o5fu6.tch.abigail@alexandra.delanet.com>,
abigail@delanet.com wrote:
>>
>>
>>I usually just point to the nearest church tower.
>>
>>
>>
I usually tell them what time it is. But that's why computer people have
such a reputation as warm, caring, accessible people.
Why do you feel you're exempt from the norms of civilized behavior towards
others just because you're on the net?
--
Tom McGee
tamcgee@home.com
------------------------------
Date: Fri, 9 Jul 1999 20:52:35 -0500
From: elaine ashton <elaine@chaos.wustl.edu>
Subject: Re: Speed Differences Perl v. Cold Fusion
Message-Id: <Pine.GSO.4.05.9907092041480.18443-100000@chaos.wustl.edu>
> I'm having difficulty retrieving any information on comparisons between
> the two development environments. Any time Cold Fusion has been
> compared, it has been against other commercial products.
I am currently working on such a document. I've taken your email address
and will forward you a copy when I have something ready.
> Has anyone had any experience in comparing CF v. PERL for speed in
> processing CGI type scripts?
Speed is really dependent on many different factors so benchmarks aren't
always reliable in giving you good information for your specific
situation. What architecture? What platform? What webserver? Ram?
Filesystems? etc. These all count in the benchmark process. Also, it
depends on how well you write Perl. CF could beat out a poorly designed
mySQL database coupled with suboptimal code.
One argument I am making for Perl in these situations is that mod_perl
apache is far faster than Netscape Enterprise with CF on the Solaris
platform. Also, CF adds a layer of complexity as it is a 3rd party bit of
software that hides the workings of it from you so that when you have real
problems, you waste precious time trying to track it down and then have to
deal with the usual tech support gibberish. You are owned by and tied-down
to a single solution, possibly even after the company has folded and
support is no longer available.
With Perl, either you or someone you know (or did) wrote the code and have
a much better chance at pinpointing the problem. Also, a plethora of
documentation and a community that responds to questions far faster than
any tech support line I have ever seen. Perl is also more flexible when
you need to add features. And Perl is here to stay.
e.
------------------------------
Date: Sat, 10 Jul 1999 02:18:42 GMT
From: R.Joseph <streaking_pyro@my-deja.com>
Subject: The "Camel Book"
Message-Id: <7m6ahq$r81$1@nnrp1.deja.com>
I recently purchased the "Camel Book," actually Programming Perl, 2nd
Edition by Larry Wall, Tom Christiansend & Randal L. Schwartz from
O'Reilly. Most people in the Perl community know this book, but I
would just like to give my congrats to the authors. I have read many
programming books before, and they all were dry and slow reading.
However, the authors were able to make something as dry as a
programming book (face it, most of them are fry :) and make it fun to
read. Not only that, it is EXTREMLY informative. A must buy. Go get
it everybody!! Thanks you guys for a great book!!
--
R.Joseph
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 10 Jul 1999 01:48:49 GMT
From: michboy832@aol.com (Steven W. Peters)
Subject: Use of uninitialized value
Message-Id: <19990709214849.23278.00012781@ng-bh1.aol.com>
Here is the part of my script that reports the error:
(3)$input = 'Steve';
(4)
(5)while () {
(6) chomp($input = <>);
(7) if ($input ne '') {
(8) <snip>
(9) }
I get feedback saying that there was use of uninitialized value at lines 6 and
7. I looked this up in the perldiag and it said to avoid this, assign a value
to your variable. Isn't that what I did when I said $input = 'Steve';?
Steve Peters
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 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.
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 V9 Issue 98
************************************