Re: case statement in perl

2012-08-02 Thread Paul.G
Thanks for everybody assistance, found a an appropiate solution to my problem. Without having to use the case statement. Cheers Paul From: Hal Wigoda To: beginners@perl.org Sent: Thursday, 2 August 2012 5:38 AM Subject: Re: case statement in perl so why d

Passing socket descriptor between threads

2012-08-02 Thread William Ward
Hi All, Is there a way to pass a "socket descriptor" to another thread?   Here is an example of what is being attempted here: #!/usr/bin/perl use strict; use threads; use Socket; my $listener_thread = threads->new(\&listener); $listener_thread->join; sub listener {    my $prot = getproto

Re: Package modules and EXPORTER use

2012-08-02 Thread Shawn H Corey
On Thu, 2 Aug 2012 08:34:48 -0700 Jim Gibson wrote: > Including code samples always helps! Please copy & paste your code if you're going to include it. Rewritten code almost always has bugs. -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and co

Re: Package modules and EXPORTER use

2012-08-02 Thread Jim Gibson
On Aug 2, 2012, at 7:51 AM, Mark Haney wrote: > On 08/02/2012 09:57 AM, Shlomi Fish wrote: >> Hi Mark, > >>> >>> So, should I use it? Does it really matter in small apps? What am I >>> missing here? >> >> Can you give a code sample that reproduces the issue? >> > > > Let me see if I can e

Re: Package modules and EXPORTER use

2012-08-02 Thread Lawrence Statton
On 08/02/2012 09:51 AM, Mark Haney wrote: On 08/02/2012 09:57 AM, Shlomi Fish wrote: Hi Mark, So, should I use it? Does it really matter in small apps? What am I missing here? Can you give a code sample that reproduces the issue? Let me see if I can explain better. I have a Package cal

Re: Package modules and EXPORTER use

2012-08-02 Thread Mark Haney
On 08/02/2012 09:57 AM, Shlomi Fish wrote: Hi Mark, So, should I use it? Does it really matter in small apps? What am I missing here? Can you give a code sample that reproduces the issue? Let me see if I can explain better. I have a Package called EMBMON::DAO which (as may be obvious

Re: Package modules and EXPORTER use

2012-08-02 Thread Shlomi Fish
Hi Mark, let me try to tackle your questions incrementally. On Thu, 02 Aug 2012 09:17:00 -0400 Mark Haney wrote: > I've got an odd situation here and I'm not sure what to think about it. > I've had to pull several subroutines into it's own package since they > all have similar functions (as

Package modules and EXPORTER use

2012-08-02 Thread Mark Haney
I've got an odd situation here and I'm not sure what to think about it. I've had to pull several subroutines into it's own package since they all have similar functions (as far as that goes) and I find that I reuse them more than I thought. My question stems from the EXPORTER directive. I've