DBI + forking (was: DBI + XML::Twig conflict)

2005-06-11 Thread Peter Rabbitson
Just to sum up the discussion as it was extremely helpful and educational: > > Hm... I get it and I don't get it... Who keeps the sub _dummy - the parent > > or the child? I need to use DBI in it so I guess InactiveDestroy must be set > > to true there. How do I find out who is who not at the time

Change the format of $@

2005-06-11 Thread Peter Rabbitson
Hello, Consider: perl -e 'eval { die "Error message:\nVerbose error message:" }; print $@;' Error message: Verbose error message: at -e line 1. ^ Is there an easy way to get rid of the marked part? Thanks Peter -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Change the format of $@

2005-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, Peter Rabbitson said: perl -e 'eval { die "Error message:\nVerbose error message:" }; print $@;' Error message: Verbose error message: at -e line 1. ^ Is there an easy way to get rid of the marked part? If you place a newline at the end of your ar

select case or switch statement

2005-06-11 Thread Ron Smith
Does Perl have the equivalent of a case statement or a switch statement. I'm trying to avoid a bunch of "if-then" statements. I'm seeing posts regarding "use switch", but I want to make sure it's not a deprecated practice. I'm using Perl -v 5.8.0. my $day; if ($day = "mon") { $num = 0; }

Re: Net::SSH::Perl bind socket problem

2005-06-11 Thread MNibble
Gui wrote: I'm really sorry for not replying during all this time. I'm involved in lots of project, and I had to set this one aside for a moment. But now I'm determined to get this thing fix! I still have beginner level in perl, and can't quite make sense of the code you posted. I asked the net

Re: Pipe to X clipboard

2005-06-11 Thread MNibble
Zentara wrote: On Fri, 10 Jun 2005 11:07:29 +0200, [EMAIL PROTECTED] (MNibble) wrote: aloha how do i pipe to the x clipboard from perl ? Are there diffrent ways from on X to an other ( x.org, Xfree86 ) MNibble There are alot of difficulties giving a one shot answer, because what works on

Re: select case or switch statement

2005-06-11 Thread Ing. Branislav Gerzo
Ron Smith [RS], on Saturday, June 11, 2005 at 14:11 (-0700 (PDT)) has on mind: RS> Does Perl have the equivalent of a case statement or a switch RS> statement. I'm trying to avoid a bunch of "if-then" statements. RS> I'm seeing posts regarding "use switch", but I want to make sure RS> it's not a d

Re: select case or switch statement

2005-06-11 Thread Ron Smith
I used 'perldoc -f switch' and nothing came up. I've done what you suggested and I'm on my way. Thank you very much. R "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> wrote: Ron Smith [RS], on Saturday, June 11, 2005 at 14:11 (-0700 (PDT)) has on mind: RS> Does Perl have the equivalent of a case st

Re: select case or switch statement

2005-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, Ron Smith said: Does Perl have the equivalent of a case statement or a switch statement. I'm trying to avoid a bunch of "if-then" statements. I'm seeing posts regarding "use switch", but I want to make sure it's not a deprecated practice. I'm using Perl -v 5.8.0. The Switch.pm mod

Re: select case or switch statement

2005-06-11 Thread Chris Devers
On Sat, 11 Jun 2005, Jeff 'japhy' Pinyan wrote: > On Jun 11, Ron Smith said: > > > Does Perl have the equivalent of a case statement or a switch > > statement. I'm trying to avoid a bunch of "if-then" statements. > > I'm seeing posts regarding "use switch", but I want to make sure > > it's not a