in reply to Re: Subroutines and Passing data ...
in thread Subroutines and Passing data ...

Cheers L~R,
That has certainly cleared it up and I have it working !!
thanks again

Replies are listed 'Best First'.
Re^3: Subroutines and Passing data ...
by Forsaken (Friar) on Jun 13, 2005 at 15:31 UTC
    Note that when you're returning a known number of scalars and 1 single array that you won't need a reference. ie the following works just fine:
    sub foo { return($scalar, $anotherscalar, @array) } my($s1, $s2, @a) = foo;
    The array always needs to go last though...


    Remember rule one...