[26208] in Perl-Users-Digest
Perl-Users Digest, Issue: 8394 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 7 11:05:28 2005
Date: Wed, 7 Sep 2005 08:05:06 -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 Wed, 7 Sep 2005 Volume: 10 Number: 8394
Today's topics:
Re: FAQ 3.5 How do I debug my Perl programs? (David Combs)
Re: How to get some data from TXT file and run it in Pe <max@xxxxxxx.xxx>
Re: How to get some data from TXT file and run it in Pe <heulaattori@invalid.yahoo.com>
Re: How to get some data from TXT file and run it in Pe (Anno Siegel)
Re: OT: Re: Looking for Equation Solver <ignoramus25850@NOSPAM.25850.invalid>
the star before filehandle <rallen@bobotheclown.org>
Why doesn't this work? <mr@sandman.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 7 Sep 2005 00:52:39 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: Re: FAQ 3.5 How do I debug my Perl programs?
Message-Id: <dfldkm$3vj$1@reader1.panix.com>
In article <250820051542163826%comdog@panix.com>,
brian d foy <comdog@panix.com> wrote:
>In article <Xns96BDB5BD4131sdn.comcast@216.196.97.136>, Eric J. Roode
><sdn.girths00869@zoemail.net> wrote:
>
>> PerlFAQ Server <comdog@panix.com> wrote in
>> news:dee75k$m23$1@reader2.panix.com:
>>
>> > --------------------------------------------------------------------
>> >
>> > 3.5: How do I debug my Perl programs?
>> >
>> [...]
>> > Have you tried the Perl debugger, described in perldebug? You can
>> > step through your program and see what it's doing and thus work
>> > out why what it's doing isn't what it should be doing.
>>
>> To the FAQ maintainer(s):
>>
>> Might I suggest adding a note about the excellent Devel::ptkdb
>> debugger?
>
>Indeed. There are some other debuggers I should mention too.
>
>thanks,
>
>--
>brian d foy, bdfoy@cpan.org
>Subscribe to The Perl Review: http://www.theperlreview.com
Such as?
And, pls compare this nifty ptkdb with cperl-mode+gud+perldb,
to give an us idea first.
Thanks,
David
------------------------------
Date: Wed, 7 Sep 2005 08:23:38 +0200
From: "max" <max@xxxxxxx.xxx>
Subject: Re: How to get some data from TXT file and run it in Perl code?
Message-Id: <dfm119$6d2$1@ss405.t-com.hr>
Super it is very useful solution.
Tnx.
------------------------------
Date: Wed, 07 Sep 2005 10:42:48 GMT
From: "hemis" <heulaattori@invalid.yahoo.com>
Subject: Re: How to get some data from TXT file and run it in Perl code?
Message-Id: <IuzTe.8199$Nb2.142328@news1.nokia.com>
Had rexx this property or what, where you could load a module or just any
piece of code from text file onto memory and run it?
It would be cool. Can I do that in perl?!
<xhoster@gmail.com> wrote in message
news:20050906122853.656$dg@newsreader.com...
> "max" <max@xxxxxxx.xxx> wrote:
>> How to get some data from TXT file and run it in Perl code?
>
> rename "foo.TXT", "foo.pl" or die $!;
>
> Xho
>
> --
> -------------------- http://NewsReader.Com/ --------------------
> Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: 7 Sep 2005 11:00:34 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: How to get some data from TXT file and run it in Perl code?
Message-Id: <dfmh8i$97k$1@mamenchi.zrz.TU-Berlin.DE>
hemis <heulaattori@invalid.yahoo.com> wrote in comp.lang.perl.misc:
>
> Had rexx this property or what, where you could load a module or just any
> piece of code from text file onto memory and run it?
> It would be cool. Can I do that in perl?!
perldoc -f eval
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
------------------------------
Date: Wed, 07 Sep 2005 04:10:08 GMT
From: Ignoramus25850 <ignoramus25850@NOSPAM.25850.invalid>
Subject: Re: OT: Re: Looking for Equation Solver
Message-Id: <AKtTe.46999$VL5.81@fe23.usenetserver.com>
Thanks guys (all of you). You got it. I corrected the solver, it was a
programming mistake. Thank you!
i
On Sun, 4 Sep 2005 21:29:30 +0200, Dave <daveandniki@ntlworld.com> wrote:
>
> "Ignoramus14363" <ignoramus14363@NOSPAM.14363.invalid> wrote in message
> news:bdwSe.98947$mm3.66189@fe35.usenetserver.com...
>> On Sat, 3 Sep 2005 22:47:50 -0700, Keith Keller
>> <kkeller-usenet@wombat.san-francisco.ca.us> wrote:
>>> On 2005-09-03, Ignoramus14363 <ignoramus14363@NOSPAM.14363.invalid>
>>> wrote:
>>>>
>>>> On 03 Sep 2005 22:51:13 GMT, xhoster@gmail.com <xhoster@gmail.com>
>>>> wrote:
>>>>>
>>>>> Also, it doesn't give the right answer.
>>>>>
>>>>> "Text form: ((x^2-6x+9)/(x^2-3x-10))/((x^2-5x+6)/(x^2-8x+15))
>>>>> simplifies to
>>>>> (x-3)/(x+2)"
>>>>>
>>>>> No, it doesn't.
>>>>
>>>> I will appreciate corrections and suggestions. What's the right answer
>>>> there?
>>>
>>> If you can't figure it out on paper, why are you writing a program to do
>>> it? Sheesh, I might as well go write an OS! :-\
>>
>> Let me know when you have something useful and substantial to say,
>> okay?
>>
>> (hint, I did solve it on paper)
>>
>> If you can explain why the above simplification is incorrect, I would
>> appreciate hearing that.
>>
>> i
>>
>
> The error in the explanation this example is at the line:
> 'Canceled out common factors (x-(3)),(x-(3))'
>
> Where (1) is left in each case instead of (x-3) and (x-2) in numerator and
> denominator respectively.
>
> The explantion would be clearer if you showed the factorisation before the
> cancellation, and this error would have been more obvious too.
>
> Hope this helps
>
> Dave
>
>
--
------------------------------
Date: Wed, 07 Sep 2005 12:45:47 GMT
From: Rocky Allen <rallen@bobotheclown.org>
Subject: the star before filehandle
Message-Id: <Pine.LNX.4.61.0509070843120.16284@grn-amd64-00.grntech.net>
Hi Y'all
Can someone direct me to doc on this convention:
local (*her_in, *her_out, *her_err);
this is from the IPC::Open3 module example
I know that local scopes it, but I cannot find anything anywhere (perl
programming by oreilly, and perdoc perlop) that tells me what the stars
before the filehandles do. Thank you
Rocky
------------------------------
Date: Wed, 07 Sep 2005 16:34:55 +0200
From: Sandman <mr@sandman.net>
Subject: Why doesn't this work?
Message-Id: <mr-7F6B39.16345507092005@individual.net>
This works:
###
#!/usr/bin/perl
use strict;
use warnings;
my $string = "12.00 Simpsons 12.30 Fresh prince 14.00 Superbowl";
my @list = split / ?(?=\d\d\.\d\d)/, $string;
foreach (@list){
print "$_\n";
}
###
And outputs:
12.00 Simpsons
12.30 Fresh prince
14.00 Superbowl
This doesn't work:
###
#!/usr/bin/perl
use strict;
use warnings;
my $string = "author:Jane Smith institution:university of Cambridge year:1976";
my @list = split / ?(?=\w+:)/, $string;
foreach (@list){
print "$_\n";
}
###
It outputs:
a
u
t
h
o
r:Jane Smith
i
n
s
t
i
t
u
t
i
o
n:university of Cambridge
y
e
a
r:1976
What makes it so different? The range matching (\w+)? I thought only variable
length was forbidden in lookback, not in look forward, or am I misunderstanding
something completely?
--
Sandman[.net]
------------------------------
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 8394
***************************************