[27027] in Perl-Users-Digest
Perl-Users Digest, Issue: 8948 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Feb 13 14:06:07 2006
Date: Mon, 13 Feb 2006 11:05:10 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 13 Feb 2006 Volume: 10 Number: 8948
Today's topics:
Re: Absolute Novice (Mac Tiger) Needs Help <rvtol+news@isolution.nl>
Re: Absolute Novice (Mac Tiger) Needs Help <jgibson@mail.arc.nasa.gov>
on delete cascade oracle perldbi <ngoc@yahoo.com>
Re: on delete cascade oracle perldbi xhoster@gmail.com
Re: on delete cascade oracle perldbi <glex_no-spam@qwest-spam-no.invalid>
Re: Perl vs. Python <rvtol+news@isolution.nl>
Re: Perl vs. Python <josef.moellers@fujitsu-siemens.com>
Re: Program to generate buttons for sequence of command <rvtol+news@isolution.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 13 Feb 2006 13:46:42 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: Absolute Novice (Mac Tiger) Needs Help
Message-Id: <dsq2s9.1e0.1@news.isolution.nl>
James Taylor schreef:
> Eh? How many platforms don't have the concept of lines in text files?
It is not just about lines. There can be huge and subtle differences
between the storage, transport and usage formats of data. The Internet
Message Format header for instance, in which a header field can be
folded into several header lines (continuation lines start with
whitespace). Or the NNTP transport format, in which the dots at the
start of a line are temporarily doubled. With both, CRLF is used as line
ending, mainly to enable presentation (of even the transport format) on
the simplest 80x24 terminals without special software.
Already mentioned are the systems that work with fixed size records.
These records often have several positions at the start that contain
metadata.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Mon, 13 Feb 2006 10:39:25 -0800
From: Jim Gibson <jgibson@mail.arc.nasa.gov>
Subject: Re: Absolute Novice (Mac Tiger) Needs Help
Message-Id: <130220061039250534%jgibson@mail.arc.nasa.gov>
In article <459jhnF5jmqdU1@individual.net>, Gunnar Hjalmarsson
<noreply@gunnar.cc> wrote:
> 2) Based on the incorrect assumption that we were talking about Mac
> Classic, and assuming that Wes actually meant that BBEdit uses \015 by
> default as the newline character, I meant to say that the OS should have
> recognized \015 as a newline char.
Let me add the fact that BBEdit, which I use (don't know about the free
BBEDit Lite), allows the user to pick the line-ending default among
Macintosh (0x0d), Unix (0x0a), and DOS (0x0d0x0a) (see the "Text Files:
Saving" menu under Preferences) and that page 163 of my copy of the
Camel Book, 3rd Edition, shows:
Escape | Meaning
--------+------------------------
\n | Newline (NL, CR on Mac)
\r | Return (CR, NL on Mac)
perpetuating the old Mac OS 9 line ending style.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
------------------------------
Date: Mon, 13 Feb 2006 17:40:45 +0100
From: ngoc <ngoc@yahoo.com>
Subject: on delete cascade oracle perldbi
Message-Id: <ydKdneL9cpNzOm3e4p2dnA@telenor.com>
Hi
I get message 'Child record found' when deleting parents in Oracle.
How can I from perl dbi instruct Oracle to delete also child when I
delete parents?
Thanks
------------------------------
Date: 13 Feb 2006 16:28:29 GMT
From: xhoster@gmail.com
Subject: Re: on delete cascade oracle perldbi
Message-Id: <20060213112912.202$cg@newsreader.com>
ngoc <ngoc@yahoo.com> wrote:
> Hi
> I get message 'Child record found' when deleting parents in Oracle.
> How can I from perl dbi instruct Oracle to delete also child when I
> delete parents?
The same way you would do it were you not using Perl.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Mon, 13 Feb 2006 11:38:20 -0600
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: on delete cascade oracle perldbi
Message-Id: <hu3If.28$903.9177@news.uswest.net>
ngoc wrote:
> Hi
> I get message 'Child record found' when deleting parents in Oracle.
> How can I from perl dbi instruct Oracle to delete also child when I
> delete parents?
You'd handle it just like you'd handle other error conditions, by using
eval.
Take a look at the documentation for eval (perldoc -f eval) and for DBI
as to how to handle error conditions. Show your code if you're unable to
get this to work.
Straight out of the documentation for DBI:
eval {
...
$sth->execute();
...
};
if ($@) {
# $sth->err and $DBI::err will be true if error was from DBI
warn $@; # print the error
... # do whatever you need to deal with the error
}
You could check $@ to see if it contains 'Child record found'.
------------------------------
Date: Mon, 13 Feb 2006 14:14:20 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: Perl vs. Python
Message-Id: <dsq4kl.18g.1@news.isolution.nl>
Patrick M. Rutkowski:
> Emmanuel Florac:
>> Abigail:
>>> You mean both Bush and Osama Bin Laden get their orders from the
>>> same god?
>>
>> Yes. Isn't it a nice hint there isn't any god after all ? :)
>
> I think it's just a nice hint that neither Bush nor Bin Laden know
> what they're doing.
No wonder:
http://search.cpan.org/search?query=sync+AND+agenda
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Mon, 13 Feb 2006 15:23:17 +0100
From: Josef Moellers <josef.moellers@fujitsu-siemens.com>
Subject: Re: Perl vs. Python
Message-Id: <dsq389$21k$1@nntp.fujitsu-siemens.com>
Dr.Ruud wrote:
> Patrick M. Rutkowski:
>=20
>>Emmanuel Florac:
>>
>>>Abigail:
>=20
>=20
>>>>You mean both Bush and Osama Bin Laden get their orders from the
>>>>same god?
>>>
>>>Yes. Isn't it a nice hint there isn't any god after all ? :)
>>
>>I think it's just a nice hint that neither Bush nor Bin Laden know
>>what they're doing.
>=20
>=20
> No wonder:
> http://search.cpan.org/search?query=3Dsync+AND+agenda
Oh no, now we have "CPAN" and Bin Laden's name in one posting. The NSA's =
computers will trigger and the exact location of CPAN will then be=20
auto-fed into some missile's computer.
But then ... maybe the computer is programmed in Perl and it blankly=20
refuses to incinerate CPAN?!?
Let's keep our fingers
crossed,
Josef
--=20
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
------------------------------
Date: Mon, 13 Feb 2006 14:30:22 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: Program to generate buttons for sequence of commands
Message-Id: <dsq57g.18k.1@news.isolution.nl>
zentara schreef:
> com => "c:\texmf\miktex\bin\latex.exe test",
You need to use single quotes, or they will be interpolated away.
com => q/c:\texmf\miktex\bin\latex.exe test/,
Also think about:
com => q/"c:\tex mf\mik tex\bin\latex.exe" test/,
(if you need to keep the "" because a space is embedded)
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
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 8948
***************************************