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
> -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.
>
>
> 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
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
"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_
> 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
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
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
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!!
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
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
11 matches
Mail list logo