in reply to Re: How to return multiple array from subroutine
in thread How to return multiple array from subroutine

ikegami,don't submit bugs! ;-)

sub breakEmailAddress { my ($components, $counter, $address) = @_; @$components = split('@', $address); @$counter = split('@', $address); } my(@first,@second); breakEmailAddress(\@first, \@second, 'john@some.domain.com'); print "FirstArr: @first\n"; print "SecondArr: @second\n";

cheers,
--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}