Re: Calling subroutines.

2003-08-01 Thread Tim Sweetman
Andy Williams (IMAP HILLWAY) wrote: Great thanks. I had thought of doing that but it needs to know about subroutines that another programmer may put in an entirely different package. (Basically I will be the only one to have access to this code). Er... you seem confused. If you're the only one wit

RE: Calling subroutines.

2003-08-01 Thread Andy Williams \(IMAP HILLWAY\)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matt Lawrence > Sent: 01 August 2003 16:20 > To: [EMAIL PROTECTED] > Subject: Re: Calling subroutines. > A nice simple way of doing that would be to have a hash of > valid values > for $method. > >

Re: Calling subroutines.

2003-08-01 Thread Dan Brook
> I realise that what is passed could be tainted and need to check for > that, I was just wondering if there was a "nice" way of doing this or > whether I should do it at all? Maybe not a 'nice' approach, but definitely effective in this case, would walking the main stash. So something like this w

Re: Calling subroutines.

2003-08-01 Thread Matt Lawrence
Andy Williams (IMAP HILLWAY) wrote: Hi, I want to be able to do something like the following: my $method = shift(@ARGV); my @vars = @ARGV; eval { &$method(@vars); }; if ($@) { die "Method doesn't exist"; } sub METH1 { my @passed_vars = @_; print "Welcome to meth

Re: Calling subroutines.

2003-08-01 Thread Jasper McCrea
"Andy Williams (IMAP HILLWAY)" wrote: > > Hi, > > I want to be able to do something like the following: > > my $method = shift(@ARGV); > my @vars = @ARGV; > > eval { > &$method(@vars); > }; > > if ($@) { > die "Method doesn't exist"; > } > > sub METH1 { > my @passed_

Re: General UNIX type question hmmmmm!!

2003-08-01 Thread Sam Vilain
> I was on the box editing a perl script at the time and shell > completely froze on me. I was then unable to set up another ssh or > telnet session to it. > The problem seemed to clear itself some three hours later when the > shell reponded again. The box was continually pingable during the

Calling subroutines.

2003-08-01 Thread Andy Williams \(IMAP HILLWAY\)
Hi, I want to be able to do something like the following: my $method = shift(@ARGV); my @vars = @ARGV; eval { &$method(@vars); }; if ($@) { die "Method doesn't exist"; } sub METH1 { my @passed_vars = @_; print "Welcome to method 1"; } package MyPgk; sub METH2

Re: General UNIX type question hmmmmm!!

2003-08-01 Thread Chris Devers
On Fri, 1 Aug 2003, Andy Ford wrote: > I was on the box editing a perl script at the time and shell completely > froze on me. I was then unable to set up another ssh or telnet session > to it. > > The problem seemed to clear itself some three hours later when the shell > reponded again. The box wa

Re: General UNIX type question hmmmmm!!

2003-08-01 Thread Andy Ford
I was on the box editing a perl script at the time and shell completely froze on me. I was then unable to set up another ssh or telnet session to it. The problem seemed to clear itself some three hours later when the shell reponded again. The box was continually pingable during the shell outage!!

Re: General UNIX type question hmmmmm!!

2003-08-01 Thread Adam C Auden
On Fri, 1 Aug 2003, Andy Ford wrote: > It shows how many waiting processes I have (77). Nope, w is the number of swapped out processes - which isn't really waiting. From the vmstat man page: The fields of vmstat's display are procs Report the number of processes in each of t

General UNIX type question hmmmmm!!

2003-08-01 Thread Andy Ford
I sort of understand how solaris manages its memory allocation... When I do a vmstat, I get the following... procs memorypagedisk faults cpu r b w swap free re mf pi po fr de sr m0 m1 m4 m5 in sy cs us sy id 3 0 77 315752 7488 84 699 128 32