RE: Array not being passed into a subroutine

2002-09-24 Thread Tiller, Jason
Hi, Shaun, :) > I currently currently passing a subroutine one scalar value and two > arrays. Hmm. This is not what you're doing in the example code. In the example code, this line: subroutine($a, @array1, @array2); says "Call subroutine with arguments of $a, all of the entries in @array1, a

RE: evaluating multiple conditions

2002-04-23 Thread Tiller, Jason
Hi, Shaun, :) >From my reading of the 'perlsub' manpage, the &some_func( arg1, arg2, ..., argn ); syntax calls some_func with the specific argument list but does *not* check some_func's prototype (if it has one). So, it's a way of getting around overly-fascist functions if you need to. I bel

RE: param function

2002-03-15 Thread Tiller, Jason
Hi, Mariusz, :) I don't qualify as an expert, but this might do the trick: my %params; $params{$_} = param($_) foreach param(); If I understand your code correctly, param() returns a list of all the possible keys, right? If so, then the above code should work. You refer to the parameters as